]> source.dussan.org Git - redmine.git/commitdiff
Added hook, :model_changeset_scan_commit_for_issue_ids_pre_issue_update. #3279
authorEric Davis <edavis@littlestreamsoftware.com>
Sat, 30 May 2009 22:34:27 +0000 (22:34 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Sat, 30 May 2009 22:34:27 +0000 (22:34 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2773 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/changeset.rb

index eaa51b617b7b505737a1539551d662c1ec0be514..d076b307bb379c1ee8293c55a40121729a6fbdc1 100644 (file)
@@ -112,6 +112,8 @@ class Changeset < ActiveRecord::Base
           journal = issue.init_journal(user || User.anonymous, ll(Setting.default_language, :text_status_changed_by_changeset, csettext))
           issue.status = fix_status
           issue.done_ratio = done_ratio if done_ratio
+          Redmine::Hook.call_hook(:model_changeset_scan_commit_for_issue_ids_pre_issue_update,
+                                  { :changeset => self, :issue => issue })
           issue.save
         end
       end