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

fixed fog file uploader path in pending attachments

Markus Kahl0792ed64433e
diff --git a/app/models/attachment.rb b/app/models/attachment.rb
index 4484601c042..71d59f76932 100644
--- a/app/models/attachment.rb
+++ b/app/models/attachment.rb
@@ -270,6 +270,7 @@ class Attachment < ApplicationRecord
a[:file] = file_name
a.save!
+ a.reload # necessary so that the fog file uploader path is correct
a
end