diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-10-05 10:02:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-10-05 10:02:31 +0000 |
commit | 0444ecca3c876cae6ee4f83f41c4cd0bb7ee6f74 (patch) | |
tree | 381eb0f2393829602325f8de0ab7d7b8e197256f /app/models/changeset.rb | |
parent | a77b462a53a02dbead1042bd12060177ade7b22a (diff) | |
download | redmine-0444ecca3c876cae6ee4f83f41c4cd0bb7ee6f74.tar.gz redmine-0444ecca3c876cae6ee4f83f41c4cd0bb7ee6f74.zip |
Pass the commit keyword used to update the issue to the plugin hook.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12198 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/changeset.rb')
-rw-r--r-- | app/models/changeset.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 7920ae078..87fdaffcd 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -223,7 +223,7 @@ class Changeset < ActiveRecord::Base journal = issue.init_journal(user || User.anonymous, ll(Setting.default_language, :text_status_changed_by_changeset, text_tag(issue.project))) issue.assign_attributes updates.slice(*Issue.attribute_names) Redmine::Hook.call_hook(:model_changeset_scan_commit_for_issue_ids_pre_issue_update, - { :changeset => self, :issue => issue }) + { :changeset => self, :issue => issue, :action => action }) unless issue.save logger.warn("Issue ##{issue.id} could not be saved by changeset #{id}: #{issue.errors.full_messages}") if logger end |