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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
make sure to compare strings since comparing a path and a string will fail
Markus Kahl0b291528e876
diff --git a/modules/bim/app/services/bim/ifc_models/view_converter_service.rb b/modules/bim/app/services/bim/ifc_models/view_converter_service.rbindex 2a056253c13..9a1594a53f1 100644--- a/modules/bim/app/services/bim/ifc_models/view_converter_service.rb+++ b/modules/bim/app/services/bim/ifc_models/view_converter_service.rb@@ -104,14 +104,14 @@ module Bim# If the original file is already called 'model.ifc' then renaming the file is# unnecessary as the conversion result is already called model.xkt then.# Hence only rename if `xkt_path` is actually different from `final_xkt_path`.- FileUtils.mv xkt_path, final_xkt_path.to_s unless xkt_path == final_xkt_path+ FileUtils.mv xkt_path, final_xkt_path.to_s unless xkt_path.to_s == final_xkt_path.to_sifc_model.xkt_attachment = File.new final_xkt_path.to_senddef save_metadata(metadata_path)final_metadata_path = change_basename metadata_path, ifc_model_path, ".json"- FileUtils.mv metadata_path, final_metadata_path.to_s unless metadata_path == final_metadata_path+ FileUtils.mv metadata_path, final_metadata_path.to_s unless metadata_path.to_s == final_metadata_path.to_sifc_model.metadata_attachment = File.new final_metadata_path.to_send