Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

When attachment is not saved, use filename property

Oliver Güntherb265818e3bf7
diff --git a/app/models/attachment.rb b/app/models/attachment.rb
index 89b844f4bc8..b70b90ede94 100644
--- a/app/models/attachment.rb
+++ b/app/models/attachment.rb
@@ -148,7 +148,7 @@ class Attachment < ApplicationRecord
end
def filename
- attributes['file']
+ attributes['file'] || super
end
##