Merged r21613 to 5.0-stable (#37155).

git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21620 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2022-05-28 18:27:40 +00:00
parent 25883ce5d0
commit 78036b902c

View File

@@ -1168,7 +1168,7 @@ class Issue < ActiveRecord::Base
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