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 life cycle step definitions default to order by position

Ivan Kuchin905ce22b2dd4
diff --git a/app/models/project/life_cycle_step_definition.rb b/app/models/project/life_cycle_step_definition.rb
index f80cc611693..1f3c8f3b09e 100644
--- a/app/models/project/life_cycle_step_definition.rb
+++ b/app/models/project/life_cycle_step_definition.rb
@@ -43,6 +43,8 @@ class Project::LifeCycleStepDefinition < ApplicationRecord
acts_as_list
+ default_scope { order(:position) }
+
def step_class
raise NotImplementedError
end