git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21621 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/4.2.7
@@ -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 | |||