Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 17:50:22 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 18:58:59 +0300
commita8cc69a2816f3d241aa6d1471cb7e3c8d44c8624 (patch)
tree0592cb61fef54a64b88d37fbf4efff666b5d21c6 /app/services/boards
parent997e77e74a86241defcfb22a40118df7ec8f7493 (diff)
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.rb3
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