Project

General

Profile

Patch #37155 » 0001-makes-sure-Issue-last_notes-only-returns-note-text-o.patch

Jens Krämer, 2022-05-24 12:28

View differences:

app/models/issue.rb
if @last_notes
@last_notes
else
journals.where.not(notes: '').reorder(:id => :desc).first.try(:notes)
journals.visible.where.not(notes: '').reorder(:id => :desc).first.try(:notes)
end
end
    (1-1/1)