summaryrefslogtreecommitdiff
path: root/app/services/boards
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-05 14:50:44 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-11 11:39:04 -0300
commit8b15e328a60f050d4ff24c0c7203461ae2724a30 (patch)
treec726c3973825fe9c43578a7ad8ed28e77a10ce87 /app/services/boards
parent104c4f88cdc5aaa40334c83112f7c994ff7128c6 (diff)
downloadgitlab-ce-8b15e328a60f050d4ff24c0c7203461ae2724a30.tar.gz
Removes all labels from project boards when moving and issue to done
Diffstat (limited to 'app/services/boards')
-rw-r--r--app/services/boards/issues/move_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/boards/issues/move_service.rb b/app/services/boards/issues/move_service.rb
index 24f6f2c7025..9a16609a8b5 100644
--- a/app/services/boards/issues/move_service.rb
+++ b/app/services/boards/issues/move_service.rb
@@ -53,7 +53,7 @@ module Boards
if moving_to_list.movable?
moving_from_list.label_id
else
- board.lists.movable.pluck(:label_id)
+ project.boards.joins(:lists).merge(List.movable).pluck(:label_id)
end
Array(label_ids).compact