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

Make `@changes` hash with_indifferent_access again, as it was before

Klaus Zanders4339ebd0a4ed
diff --git a/lib_static/plugins/acts_as_journalized/lib/journal_changes.rb b/lib_static/plugins/acts_as_journalized/lib/journal_changes.rb
index ed42cd93b76..67ec936bf7b 100644
--- a/lib_static/plugins/acts_as_journalized/lib/journal_changes.rb
+++ b/lib_static/plugins/acts_as_journalized/lib/journal_changes.rb
@@ -31,7 +31,7 @@ module JournalChanges
return @changes if @changes
return {} if data.nil?
- @changes = cause.present? ? { cause: [nil, cause] } : {}
+ @changes = (cause.present? ? { cause: [nil, cause] } : {}).with_indifferent_access
if predecessor.nil?
@changes.merge!(initial_journal_data_changes)