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 Kabiru change. Guards agains nil journables to avoid test breakages
Marcello Rochaf0626a7d3fba
diff --git a/lib/open_project/journal_formatter/file_link.rb b/lib/open_project/journal_formatter/file_link.rbindex 7d546a36457..93503b0339b 100644--- a/lib/open_project/journal_formatter/file_link.rb+++ b/lib/open_project/journal_formatter/file_link.rb@@ -49,8 +49,8 @@ class OpenProject::JournalFormatter::FileLink < JournalFormatter::Basedef label(_key) = Storages::FileLink.model_name.humandef format_html_file_link_detail(key, value)- if value.present? && a = ::Storages::FileLink.find_by(id: key.to_i)- link_to_file_link(a, only_path: false)+ if value.present? && file_link = ::Storages::FileLink.find_by(id: key.to_i)+ link_to_file_link(file_link, only_path: false)elsif value.present?valueenddiff --git a/lib_static/plugins/acts_as_journalized/lib/journal_changes.rb b/lib_static/plugins/acts_as_journalized/lib/journal_changes.rbindex 174ce19eb59..6eb786b7ea3 100644--- a/lib_static/plugins/acts_as_journalized/lib/journal_changes.rb+++ b/lib_static/plugins/acts_as_journalized/lib/journal_changes.rb@@ -39,7 +39,7 @@ module JournalChanges@changes.merge!(subsequent_journal_data_changes)end- if journable.attachable?+ if journable&.attachable?@changes.merge!(get_association_changes(predecessor,'attachable',@@ -49,7 +49,7 @@ module JournalChanges))end- if journable.customizable?+ if journable&.customizable?@changes.merge!(get_association_changes(predecessor,'customizable',