Patch #812 ยป ref.diff
app/models/changeset.rb | ||
---|---|---|
76 | 76 |
action = match[0] |
77 | 77 |
target_issue_ids = match[1].scan(/\d+/) |
78 | 78 |
target_issues = repository.project.issues.find_all_by_id(target_issue_ids) |
79 |
referenced_issues += target_issues |
|
79 | 80 |
if fix_status && fix_keywords.include?(action.downcase) |
80 | 81 |
# update status of issues |
81 | 82 |
logger.debug "Issues fixed by changeset #{self.revision}: #{issue_ids.join(', ')}." if logger && logger.debug? |
... | ... | |
92 | 93 |
Mailer.deliver_issue_edit(journal) if Setting.notified_events.include?('issue_updated') |
93 | 94 |
end |
94 | 95 |
end |
95 |
referenced_issues += target_issues |
|
96 | 96 |
end |
97 | 97 |
|
98 | 98 |
self.issues = referenced_issues.uniq |