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

sort supported associations

Ivan Kuchin53af72a47445
diff --git a/app/services/journals/create_service.rb b/app/services/journals/create_service.rb
index ec7add86b39..556c4fb714f 100644
--- a/app/services/journals/create_service.rb
+++ b/app/services/journals/create_service.rb
@@ -236,10 +236,10 @@ module Journals
def for_supported_associations
associations = {
+ agenda_items: :agenda_itemable,
attachable?: :attachable,
customizable?: :customizable,
- file_links: :storable,
- agenda_items: :agenda_itemable
+ file_links: :storable
}
associations.each do |is_associated, association|