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
fixup! [#47064] Support custom_field_* in the attributesByTimestamp
Dombi Attila3efae8975582
diff --git a/app/models/journable/with_historic_attributes/loader.rb b/app/models/journable/with_historic_attributes/loader.rbindex 17d4f3216d8..9da3b495bdd 100644--- a/app/models/journable/with_historic_attributes/loader.rb+++ b/app/models/journable/with_historic_attributes/loader.rb@@ -94,17 +94,17 @@ class Journable::WithHistoricAttributesattr_accessor :journablesdef load_customizable_journals(journalized)- journals_by_journable = Journal+ journals_by_id = Journal.where(id: journalized.map(&:journal_id)).includes({ customizable_journals: :custom_field })- .index_by(&:journable_id)+ .index_by(&:id)journalized.each do |work_package|- # work_package.association(:journals).loaded!- # work_package.association(:journals).target = Array(journals_by_journable[work_package.id])+ journal = journals_by_id[work_package.journal_id]+ work_package.association(:journals).loaded!+ work_package.association(:journals).target = Array(journal)work_package.association(:custom_values).loaded!- custom_values = Array(journals_by_journable[work_package.id]&.customizable_journals)- work_package.association(:custom_values).target = custom_values+ work_package.association(:custom_values).target = Array(journal&.customizable_journals)endjournalizedend