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

Merge remote-tracking branch 'origin/dev' into bim-dev

Wieland Lindenthald2bef504e961
diff --cc modules/bcf/lib/open_project/bcf/bcf_json/viewpoint_reader.rb
index 76f32d0ea39,bc5310a2a5e..12ff9d252ee
--- a/modules/bcf/lib/open_project/bcf/bcf_json/viewpoint_reader.rb
+++ b/modules/bcf/lib/open_project/bcf/bcf_json/viewpoint_reader.rb
@@@ -92,18 -94,18 +94,18 @@@ module OpenProject::Bc
end
def transform_lines(hash)
- return unless hash.key?('lines')
+ return unless hash['lines']
hash['lines'] = hash['lines']['line'].map! do |line|
- line.deep_transform_values!(&:to_f)
+ line.deep_transform_values! { |val| to_numeric(val) }
end
end
def transform_clipping_planes(hash)
- return unless hash.key?('clipping_planes')
+ return unless hash['clipping_planes']
hash['clipping_planes'] = hash['clipping_planes']['clipping_plane'].map! do |plane|
- plane.deep_transform_values!(&:to_f)
+ plane.deep_transform_values! { |val| to_numeric(val) }
end
end