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
use create to be sure we have an id later
Markus Kahl0c582c4f35a5
diff --git a/app/models/attachment.rb b/app/models/attachment.rbindex 71d59f76932..7be64b9dcd8 100644--- a/app/models/attachment.rb+++ b/app/models/attachment.rb@@ -256,7 +256,7 @@ class Attachment < ApplicationRecordenddef self.create_pending_direct_upload(file_name:, author:, container: nil, content_type: nil, file_size: 0)- a = new(+ a = create(container: container,author: author,content_type: content_type.presence || "application/octet-stream",