summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-05-28 18:28:12 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-05-28 18:28:12 +0000
commit80c337dc946e6b41e89e922e3900729e5661a806 (patch)
treeba30440521d2cd330fd16da5f2bb263cc3393e19 /app
parenteccb251b350912071bbc6c2c1b0b13ec1a29792c (diff)
downloadredmine-80c337dc946e6b41e89e922e3900729e5661a806.tar.gz
redmine-80c337dc946e6b41e89e922e3900729e5661a806.zip
Merged r21613 to 4.2-stable (#37155).
git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21621 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index c258065b2..b5e128678 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -1167,7 +1167,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