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

Change order of relations create menu

Henriette Darge46b7fd10d8e5
diff --git a/app/components/work_package_relations_tab/index_component.rb b/app/components/work_package_relations_tab/index_component.rb
index 55617522bd9..0fe0e94e031 100644
--- a/app/components/work_package_relations_tab/index_component.rb
+++ b/app/components/work_package_relations_tab/index_component.rb
@@ -19,22 +19,22 @@ class WorkPackageRelationsTab::IndexComponent < ApplicationComponent
].freeze
FIRST_LEVEL_RELATION_MENU_TYPES = [
- *ADD_CHILD_MENU_TYPES,
+ Relation::TYPE_RELATES,
Relation::TYPE_FOLLOWS,
Relation::TYPE_PRECEDES,
- Relation::TYPE_PARENT,
- Relation::TYPE_RELATES
+ *ADD_CHILD_MENU_TYPES,
+ Relation::TYPE_PARENT
].freeze
SECOND_LEVEL_RELATION_MENU_TYPES = [
+ Relation::TYPE_DUPLICATES,
+ Relation::TYPE_DUPLICATED,
Relation::TYPE_BLOCKS,
Relation::TYPE_BLOCKED,
Relation::TYPE_INCLUDES,
Relation::TYPE_PARTOF,
Relation::TYPE_REQUIRES,
- Relation::TYPE_REQUIRED,
- Relation::TYPE_DUPLICATES,
- Relation::TYPE_DUPLICATED
+ Relation::TYPE_REQUIRED
].freeze
include ApplicationHelper