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
Adds the mythical forgotten file
Marcello Rochad45c28ad31d6
diff --git a/lib/open_project/journal/attachment_helper.rb b/lib/open_project/journal/attachment_helper.rbindex 3149e3acdda..f3d6a0f81b4 100644--- a/lib/open_project/journal/attachment_helper.rb+++ b/lib/open_project/journal/attachment_helper.rb@@ -35,6 +35,13 @@ module OpenProjectsaveendend++ def file_links_changed(_obj)+ unless new_record?+ add_journal+ save+ end+ endendendenddiff --git a/lib_static/plugins/acts_as_journalized/lib/journal_changes.rb b/lib_static/plugins/acts_as_journalized/lib/journal_changes.rbindex 67ec936bf7b..20784d1649e 100644--- a/lib_static/plugins/acts_as_journalized/lib/journal_changes.rb+++ b/lib_static/plugins/acts_as_journalized/lib/journal_changes.rb@@ -41,6 +41,7 @@ module JournalChanges@changes.merge!(get_association_changes(predecessor, 'attachable', 'attachments', :attachment_id, :filename))@changes.merge!(get_association_changes(predecessor, 'customizable', 'custom_fields', :custom_field_id, :value))+ @changes.merge!(get_association_changes(predecessor, 'storable', 'file_links', :file_link_id, :link_name))@changesend