Catch case the the journal notes are `nil`

pull/11179/head
Henriette Darge 2 years ago
parent 85f5681a7c
commit dcc3fe291a
  1. 2
      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.)_"

Loading…
Cancel
Save