mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Issue#last_notes fallback does not respect notes visibility (#37155).
Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21613 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e09426552c
commit
fcf792615a
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user