mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-27 19:01:14 +00:00
Allow Journal to return empty Array instead nil in Journal#attachments (#24308).
Patch by Roman Shipiev. git-svn-id: http://svn.redmine.org/redmine/trunk@15957 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4df50bc66b
commit
fcbd06e090
@ -125,7 +125,7 @@ class Journal < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def attachments
|
||||
journalized.respond_to?(:attachments) ? journalized.attachments : nil
|
||||
journalized.respond_to?(:attachments) ? journalized.attachments : []
|
||||
end
|
||||
|
||||
# Returns a string of css classes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user