diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-02 06:09:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-02 06:09:33 +0300 |
commit | fd1c75caebf0eae26d2298c68aaeac3c940f84d9 (patch) | |
tree | 95f31110d545ade33287ff6135c49bb13d90520b /app/services/boards | |
parent | 80a2f6b1d6f9a816f51d8cf00e928ce391c77ca0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/boards')
-rw-r--r-- | app/services/boards/lists/move_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/boards/lists/move_service.rb b/app/services/boards/lists/move_service.rb index 93f81837d1a..4bb7b4dbc6d 100644 --- a/app/services/boards/lists/move_service.rb +++ b/app/services/boards/lists/move_service.rb @@ -23,7 +23,7 @@ module Boards def valid_move? new_position.present? && new_position != old_position && - new_position >= 0 && new_position < board.lists.movable.size + new_position >= 0 && new_position <= board.lists.movable.last.position end def reorder_intermediate_lists |