Browse Source

issue refresh aftercreate change to aftersave

pull/347/head
呱呱呱 2 years ago
parent
commit
3fa3f3a7cc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/models/issue.rb

+ 2
- 2
app/models/issue.rb View File

@@ -98,8 +98,8 @@ class Issue < ApplicationRecord
scope :issue_index_includes, ->{includes(:tracker, :priority, :version, :issue_status, :journals,:issue_tags,user: :user_extension)}
scope :closed, ->{where(status_id: 5)}
scope :opened, ->{where.not(status_id: 5)}
after_create :incre_project_common, :incre_user_statistic, :incre_platform_statistic, :fresh_root_issue_count
after_save :change_versions_count, :send_update_message_to_notice_system, :associate_attachment_container
after_create :incre_project_common, :incre_user_statistic, :incre_platform_statistic
after_save :change_versions_count, :send_update_message_to_notice_system, :associate_attachment_container, :fresh_root_issue_count
after_destroy :update_closed_issues_count_in_project!, :decre_project_common, :decre_user_statistic, :decre_platform_statistic

def incre_project_common


Loading…
Cancel
Save