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

Catch case the the journal notes are `nil`

Henriette Dargedcc3fe291a7b
diff --git a/db/migrate/20220818074159_fix_deleted_data_journals.rb b/db/migrate/20220818074159_fix_deleted_data_journals.rb
index 332c0b3f07c..af56c5fbb16 100644
--- a/db/migrate/20220818074159_fix_deleted_data_journals.rb
+++ b/db/migrate/20220818074159_fix_deleted_data_journals.rb
@@ -98,7 +98,7 @@ class FixDeletedDataJournals < ActiveRecord::Migration[7.0]
end
def update_with_new_data!(journal, data_id)
- notes = journal.notes
+ notes = journal.notes || ''
notes << "\n" unless notes.empty?
notes << "_(This activity had to be modified by the system and may be missing some changes or contain changes from previous or following activities.)_"