diff options
author | Go MAEDA <maeda@farend.jp> | 2023-03-01 03:46:53 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-03-01 03:46:53 +0000 |
commit | a499d688021a5ba9f7cb8dba18bb3dc6b0199073 (patch) | |
tree | 8d51530b28415a7de8e8984955b1f32d6136a976 /app | |
parent | 96a718547d643eacddb09155bad25bfc48457efe (diff) | |
download | redmine-a499d688021a5ba9f7cb8dba18bb3dc6b0199073.tar.gz redmine-a499d688021a5ba9f7cb8dba18bb3dc6b0199073.zip |
Show parent issues in notification email (#34302).
Patch by Yuichi HARADA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22120 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/issues_helper.rb | 2 | ||||
-rw-r--r-- | app/models/issue.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 9fcd480a5..9a40b0188 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -445,7 +445,7 @@ module IssuesHelper def email_issue_attributes(issue, user, html) items = [] - %w(author status priority assigned_to category fixed_version start_date due_date).each do |attribute| + %w(author status priority assigned_to category fixed_version start_date due_date parent_issue).each do |attribute| if issue.disabled_core_fields.grep(/^#{attribute}(_id)?$/).empty? attr_value = (issue.send attribute).to_s next if attr_value.blank? diff --git a/app/models/issue.rb b/app/models/issue.rb index 88c808321..a0c2006ad 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -1502,6 +1502,8 @@ class Issue < ActiveRecord::Base end end + alias :parent_issue :parent + def set_parent_id self.parent_id = parent_issue_id end |