From 3fa3f3a7cc3b423ff53ff5404d1085eafca8e6c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=B1=E5=91=B1=E5=91=B1?= Date: Wed, 8 Nov 2023 10:57:31 +0800 Subject: [PATCH] issue refresh aftercreate change to aftersave --- app/models/issue.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/issue.rb b/app/models/issue.rb index 85a7d7dd5..ce4154b6d 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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