diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-05-28 18:27:40 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-05-28 18:27:40 +0000 |
commit | 78036b902cbac637edd348ce0ee58bcd564255fd (patch) | |
tree | 5e9fb2632728ae124d92234614d3155d89e5ffdf /app/models/issue.rb | |
parent | 25883ce5d0286d88f9126f895f8498199069b2b9 (diff) | |
download | redmine-78036b902cbac637edd348ce0ee58bcd564255fd.tar.gz redmine-78036b902cbac637edd348ce0ee58bcd564255fd.zip |
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
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |