@@ -223,7 +223,7 class Changeset < ActiveRecord::Base | |||||
223 | journal = issue.init_journal(user || User.anonymous, ll(Setting.default_language, :text_status_changed_by_changeset, text_tag(issue.project))) |
|
223 | journal = issue.init_journal(user || User.anonymous, ll(Setting.default_language, :text_status_changed_by_changeset, text_tag(issue.project))) | |
224 | issue.assign_attributes updates.slice(*Issue.attribute_names) |
|
224 | issue.assign_attributes updates.slice(*Issue.attribute_names) | |
225 | Redmine::Hook.call_hook(:model_changeset_scan_commit_for_issue_ids_pre_issue_update, |
|
225 | Redmine::Hook.call_hook(:model_changeset_scan_commit_for_issue_ids_pre_issue_update, | |
226 | { :changeset => self, :issue => issue }) |
|
226 | { :changeset => self, :issue => issue, :action => action }) | |
227 | unless issue.save |
|
227 | unless issue.save | |
228 | logger.warn("Issue ##{issue.id} could not be saved by changeset #{id}: #{issue.errors.full_messages}") if logger |
|
228 | logger.warn("Issue ##{issue.id} could not be saved by changeset #{id}: #{issue.errors.full_messages}") if logger | |
229 | end |
|
229 | end |
General Comments 0
You need to be logged in to leave comments.
Login now