diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2009-05-30 22:34:27 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2009-05-30 22:34:27 +0000 |
commit | ea7ff8dd76c4491c43acccbf66216c2d76d48447 (patch) | |
tree | e8604e525fac29a98a6e3064841dd9346ab62e2d | |
parent | 3224773adac8e3f20949164ca880d6c290b14bb7 (diff) | |
download | redmine-ea7ff8dd76c4491c43acccbf66216c2d76d48447.tar.gz redmine-ea7ff8dd76c4491c43acccbf66216c2d76d48447.zip |
Added hook, :model_changeset_scan_commit_for_issue_ids_pre_issue_update. #3279
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2773 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/changeset.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb index eaa51b617..d076b307b 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -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 |