diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 11:50:22 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 12:58:59 -0300 |
commit | a8cc69a2816f3d241aa6d1471cb7e3c8d44c8624 (patch) | |
tree | 0592cb61fef54a64b88d37fbf4efff666b5d21c6 /app/services/boards | |
parent | 997e77e74a86241defcfb22a40118df7ec8f7493 (diff) | |
download | gitlab-ce-a8cc69a2816f3d241aa6d1471cb7e3c8d44c8624.tar.gz |
Validate if the lists are different when moving issues between lists
Diffstat (limited to 'app/services/boards')
-rw-r--r-- | app/services/boards/issues/move_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/boards/issues/move_service.rb b/app/services/boards/issues/move_service.rb index d6eb4adc5dd..84dc3f70e76 100644 --- a/app/services/boards/issues/move_service.rb +++ b/app/services/boards/issues/move_service.rb @@ -11,7 +11,8 @@ module Boards private def valid_move? - moving_from_list.present? && moving_to_list.present? + moving_from_list.present? && moving_to_list.present? && + moving_from_list != moving_to_list end def moving_from_list |