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

Use description == 'ifc'

Oliver Günther86bad0f9a07f
diff --git a/modules/bim/lib/open_project/bim/patches/attachment_patch.rb b/modules/bim/lib/open_project/bim/patches/attachment_patch.rb
index d3d5e5da3a9..1743281b26c 100644
--- a/modules/bim/lib/open_project/bim/patches/attachment_patch.rb
+++ b/modules/bim/lib/open_project/bim/patches/attachment_patch.rb
@@ -39,13 +39,13 @@ module OpenProject::Bim::Patches::AttachmentPatch
end
def content_disposition(include_filename: true)
- return super unless ifc_model? && include_filename
+ return super unless ifc_file? && include_filename
ifc_content_disposition
end
def ifc_file?
- container_type == Bim::IfcModels::IfcModel.name && extension == ".ifc" && container.present?
+ container_type == Bim::IfcModels::IfcModel.name && description == "ifc" && container.present?
end
def ifc_content_disposition