Skip to content

Commit

Permalink
Ensure the core tests pass with Redmine 5.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Jun 20, 2024
1 parent 73c09ac commit 76c7854
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/redmine_comments/journal_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def journal_attachments

def standard_attachments_method
ids = details.select {|d| d.property == 'attachment' && d.value.present?}.map(&:prop_key)
Attachment.where(id: ids).sort_by {|a| ids.index(a.id.to_s)}
attachments = Attachment.where(id: ids).sort_by {|a| ids.index(a.id.to_s)}
attachments += journalized.respond_to?(:attachments) ? journalized.attachments : []
attachments
end

# Returns a SQL condition to filter out journals with notes that are not visible to user
Expand Down

0 comments on commit 76c7854

Please sign in to comment.