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

fix having no content_type for snapshot

ulferts4257a1953eef
diff --git a/modules/bcf/app/services/bcf/viewpoints/set_attributes_service.rb b/modules/bcf/app/services/bcf/viewpoints/set_attributes_service.rb
index ea18ddc3a56..ca456ac2884 100644
--- a/modules/bcf/app/services/bcf/viewpoints/set_attributes_service.rb
+++ b/modules/bcf/app/services/bcf/viewpoints/set_attributes_service.rb
@@ -41,7 +41,7 @@ module Bcf::Viewpoints
end
def set_snapshot
- return unless snapshot_data_complete?
+ return unless snapshot_data_complete? && snapshot_content_type
file = OpenProject::Files
.create_uploaded_file(name: "snapshot.#{snapshot_extension}",