@@ -220,9 +220,13 class Changeset < ActiveRecord::Base | |||||
220 | # don't change the status is the issue is closed |
|
220 | # don't change the status is the issue is closed | |
221 | return if issue.status && issue.status.is_closed? |
|
221 | return if issue.status && issue.status.is_closed? | |
222 |
|
222 | |||
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, | |
|
224 | ll(Setting.default_language, | |||
|
225 | :text_status_changed_by_changeset, | |||
|
226 | text_tag(issue.project))) | |||
224 | rule = Setting.commit_update_keywords_array.detect do |rule| |
|
227 | rule = Setting.commit_update_keywords_array.detect do |rule| | |
225 | rule['keywords'].include?(action) && (rule['if_tracker_id'].blank? || rule['if_tracker_id'] == issue.tracker_id.to_s) |
|
228 | rule['keywords'].include?(action) && | |
|
229 | (rule['if_tracker_id'].blank? || rule['if_tracker_id'] == issue.tracker_id.to_s) | |||
226 | end |
|
230 | end | |
227 | if rule |
|
231 | if rule | |
228 | issue.assign_attributes rule.slice(*Issue.attribute_names) |
|
232 | issue.assign_attributes rule.slice(*Issue.attribute_names) |
General Comments 0
You need to be logged in to leave comments.
Login now