summaryrefslogtreecommitdiff
path: root/app/services/boards
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-05 14:32:53 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-11 11:39:04 -0300
commit104c4f88cdc5aaa40334c83112f7c994ff7128c6 (patch)
treecc401ff4c1a9726967c85fd961b84a04a0afaf8e /app/services/boards
parent1fa3f30811c3599a2f060803b201441046926b87 (diff)
downloadgitlab-ce-104c4f88cdc5aaa40334c83112f7c994ff7128c6.tar.gz
Update Boards::Issues::MoveService to move issues on a specific board
Diffstat (limited to 'app/services/boards')
-rw-r--r--app/services/boards/issues/move_service.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/services/boards/issues/move_service.rb b/app/services/boards/issues/move_service.rb
index 84dc3f70e76..24f6f2c7025 100644
--- a/app/services/boards/issues/move_service.rb
+++ b/app/services/boards/issues/move_service.rb
@@ -10,6 +10,10 @@ module Boards
private
+ def board
+ @board ||= project.boards.find(params[:board_id])
+ end
+
def valid_move?
moving_from_list.present? && moving_to_list.present? &&
moving_from_list != moving_to_list