Vote #77966
完了Allow Journal to return empty Array instead nil in Journal#attachments
開始日:
2022/05/09
期日:
進捗率:
0%
予定工数:
Redmineorg_URL:
category_id:
19
version_id:
119
issue_org_id:
24308
author_id:
161955
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
説明
If we journalize objects without @#attachments@ then take exception (@TypeError: no implicit conversion of nil into Array@) in @app/helpers/application_helper.rb@
def parse_inline_attachments(text, project, obj, attr, only_path, options)
...
attachments += obj.attachments if obj.respond_to?(:attachments)
...
end
journals
--------------------------------------------------------------------------------
Patch committed, thanks.
--------------------------------------------------------------------------------
いいね!0