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

Don't override the project if not present in params

Oliver Günthere417d1c10e24
diff --git a/modules/bim/app/services/bim/ifc_models/set_attributes_service.rb b/modules/bim/app/services/bim/ifc_models/set_attributes_service.rb
index a28c1b2934e..0120d833e90 100644
--- a/modules/bim/app/services/bim/ifc_models/set_attributes_service.rb
+++ b/modules/bim/app/services/bim/ifc_models/set_attributes_service.rb
@@ -34,7 +34,7 @@ module Bim
protected
def set_attributes(params)
- model.project = params[:project]
+ model.project = params[:project] if params.key?(:project)
set_ifc_attachment(params.delete(:ifc_attachment))
super