diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-05 14:32:53 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-11 11:39:04 -0300 |
commit | 104c4f88cdc5aaa40334c83112f7c994ff7128c6 (patch) | |
tree | cc401ff4c1a9726967c85fd961b84a04a0afaf8e /app/services/boards | |
parent | 1fa3f30811c3599a2f060803b201441046926b87 (diff) | |
download | gitlab-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.rb | 4 |
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 |