]> _ Git - redmine-slack.git/commitdiff
wip #4472 @0.5 master
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 21 May 2021 07:51:12 +0000 (09:51 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 21 May 2021 07:51:12 +0000 (09:51 +0200)
lib/redmine_slack/patches/issue_patch.rb

index 02416fa3621bd2d1063ac0a08f31e0f9f90ec725..fefd3d510d5e43f3be0adf18347623ab740e3617 100644 (file)
@@ -11,7 +11,6 @@ module RedmineSlack
         base.class_eval do
           unloadable
           after_create :send_redmine_slack_create
-          after_commit :send_redmine_slack_update
           after_save :send_redmine_slack_update
         end
       end
@@ -131,7 +130,7 @@ module RedmineSlack
                        value: ERB::Util.html_escape(priority.to_s),
                        short: true}
           end
-          if assigned_to.present?
+          if assigned_to.present? && assigned_to_id != assigned_to_id_was
             fields << {title: I18n.t(:field_assigned_to),
                        value: ERB::Util.html_escape(assigned_to.to_s),
                        short: true}