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

fixed ifc model file assignment

Markus Kahlb2d08066bdfe
diff --git a/modules/bim/app/models/bim/ifc_models/ifc_model.rb b/modules/bim/app/models/bim/ifc_models/ifc_model.rb
index 940acb76fe1..c84762cd67a 100644
--- a/modules/bim/app/models/bim/ifc_models/ifc_model.rb
+++ b/modules/bim/app/models/bim/ifc_models/ifc_model.rb
@@ -27,7 +27,7 @@ module Bim
delete_attachment name
call = ::Attachments::CreateService
.bypass_whitelist(user: User.current)
- .call(file: file, container: self, filename: file.original_filename, description: name)
+ .call(file: file, container: self, filename: Pathname(file.path).basename, description: name)
call.on_failure { Rails.logger.error "Failed to add #{name} attachment: #{call.message}" }
end