Redmine 4.1.7
This commit is contained in:
parent
55458d3479
commit
3ca3c37487
103 changed files with 2426 additions and 431 deletions
|
@ -22,7 +22,7 @@ module JournalsHelper
|
|||
# Returns the attachments of a journal that are displayed as thumbnails
|
||||
def journal_thumbnail_attachments(journal)
|
||||
ids = journal.details.select {|d| d.property == 'attachment' && d.value.present?}.map(&:prop_key)
|
||||
ids.any? ? Attachment.where(:id => ids).select(&:thumbnailable?) : []
|
||||
ids.any? ? Attachment.where(:id => ids).select(&:thumbnailable?).sort_by{|a| ids.index(a.id.to_s)} : []
|
||||
end
|
||||
|
||||
# Returns the action links for an issue journal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue