Project

General

Profile

Defect #33829 » patch_trunk_r19958_pt2.diff

note-3 patch pattern 2 - Tatsuya Saito, 2020-08-08 17:26

View differences:

app/controllers/issues_controller.rb (working copy)
62 62
        end
63 63
        format.atom do
64 64
          @issues = @query.issues(:limit => Setting.feeds_limit.to_i)
65
          @issues.each do |issue|
66
            issue.method(:event_datetime)
67
            issue.define_singleton_method(:event_datetime) do
68
              issue.updated_on
69
            end
70
          end
65 71
          render_feed(@issues,
66 72
                      :title => "#{@project || Setting.app_title}: #{l(:label_issue_plural)}")
73
          @issues.each do |issue|
74
            issue.singleton_class.send(:remove_method, :event_datetime)
75
          end
67 76
        end
68 77
        format.csv do
69 78
          @issues = @query.issues(:limit => Setting.issues_export_limit.to_i)
(3-3/4)