mirror of
https://github.com/redmine/redmine.git
synced 2026-03-06 12:31:40 +01: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user