diff options
author | Go MAEDA <maeda@farend.jp> | 2024-03-04 14:25:49 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-03-04 14:25:49 +0000 |
commit | c94d7c5a57516f14d215ebc58324628703daadaf (patch) | |
tree | 1d6189318b0c56eeaaf1685f6f33eed2ddf46683 /app/models | |
parent | e1ffdb2316f507de4f89067da364a566d667e4e3 (diff) | |
download | redmine-c94d7c5a57516f14d215ebc58324628703daadaf.tar.gz redmine-c94d7c5a57516f14d215ebc58324628703daadaf.zip |
Fix Atom feed for issues to correctly use the updated time for "updated" element instead of the created time (#33829).
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22764 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/issue.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index ad4728444..b6d0b6a74 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -48,6 +48,7 @@ class Issue < ApplicationRecord :scope => lambda {|options| options[:open_issues] ? self.open : self.all} acts_as_event :title => Proc.new {|o| "#{o.tracker.name} ##{o.id} (#{o.status}): #{o.subject}"}, + :datetime => Proc.new {|o| o.updated_on}, :url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.id}}, :type => Proc.new {|o| 'issue' + (o.closed? ? '-closed' : '')} |