From 78036b902cbac637edd348ce0ee58bcd564255fd Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sat, 28 May 2022 18:27:40 +0000 Subject: 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 --- app/models/issue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/models/issue.rb b/app/models/issue.rb index ab9f794db..73fd3f8cd 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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 -- cgit v1.2.3