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

Only update conversion_status when there is a new IFC.

Wieland Lindenthalcf22df7f3f3a
diff --git a/modules/bim/app/services/bim/ifc_models/update_service.rb b/modules/bim/app/services/bim/ifc_models/update_service.rb
index 4176eff51a4..db68ec70002 100644
--- a/modules/bim/app/services/bim/ifc_models/update_service.rb
+++ b/modules/bim/app/services/bim/ifc_models/update_service.rb
@@ -48,6 +48,9 @@ module Bim
model.save
if @ifc_attachment_updated
+ model.update_attributes(conversion_status: ::Bim::IfcModels::IfcModel.conversion_statuses[:pending],
+ conversion_error_message: nil)
+
IfcConversionJob.perform_later(service_result.result)
end
end