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
Replace snapshot attach_files
Oliver Günther7c25932f9438
diff --git a/modules/bim/app/models/bim/bcf/viewpoint.rb b/modules/bim/app/models/bim/bcf/viewpoint.rbindex 3c1cb83afca..2112850cef8 100644--- a/modules/bim/app/models/bim/bcf/viewpoint.rb+++ b/modules/bim/app/models/bim/bcf/viewpoint.rb@@ -41,7 +41,10 @@ module Bim::Bcfdef snapshot=(file)snapshot&.destroy- attach_files('first' => { 'file' => file, 'description' => 'snapshot' })+ Attachments::CreateService+ .new(user: User.current)+ .call(file: file, container: self, filename: file.original_filename, description: 'snapshot')+ .resultendendend