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
Make comment more explicit
Christophe Bliardb3839d420bec
diff --git a/modules/backlogs/lib/open_project/backlogs/list.rb b/modules/backlogs/lib/open_project/backlogs/list.rbindex c38edb717c6..27cfa83b708 100644--- a/modules/backlogs/lib/open_project/backlogs/list.rb+++ b/modules/backlogs/lib/open_project/backlogs/list.rb@@ -81,13 +81,11 @@ module OpenProject::Backlogs::Listprotected- # Overwriting acts/list to avoid it calling save.- # Calling save will remove the changes/saved_changes information.- # rubocop:disable Style/OptionalBooleanParameter- def set_list_position(new_position, _raise_exception_if_save_fails = false)+ # Override acts_as_list implementation to avoid it calling save.+ # Calling save would remove the changes/saved_changes information.+ def set_list_position(new_position, _raise_exception_if_save_fails = false) # rubocop:disable Style/OptionalBooleanParameterupdate_columns(position: new_position)end- # rubocop:enable Style/OptionalBooleanParameterdef fix_other_work_package_positionsif changes.slice('project_id', 'type_id', 'version_id').present?