Use description == 'ifc'

pull/9839/head
Oliver Günther 3 years ago
parent 13d71f2373
commit 86bad0f9a0
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 4
      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

Loading…
Cancel
Save