Actions
Defect #24308
closedAllow Journal to return empty Array instead nil in Journal#attachments
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
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
Files
Updated by Jean-Philippe Lang about 8 years ago
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Target version set to 3.4.0
- Resolution set to Fixed
Patch committed, thanks.
Actions