summaryrefslogtreecommitdiff
path: root/app/services/boards
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2018-05-22 11:34:06 -0500
committerRobert Speicher <rspeicher@gmail.com>2018-05-22 14:16:56 -0500
commit9251a1bfd744ffe344e7ea55f1baa30e6ea83fa7 (patch)
tree022f6e4e0c1ac4b77b088e2af68487833c5c6d4d /app/services/boards
parent4c63e904ec9118f44b83496867d9e3cc0d3082c1 (diff)
downloadgitlab-ce-9251a1bfd744ffe344e7ea55f1baa30e6ea83fa7.tar.gz
Bring CE-EE parity to app/services/boards/issues/create_service.rbrs-boards-issues-create-service-parity
Diffstat (limited to 'app/services/boards')
-rw-r--r--app/services/boards/issues/create_service.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/services/boards/issues/create_service.rb b/app/services/boards/issues/create_service.rb
index 7c4a79f555e..3025029755c 100644
--- a/app/services/boards/issues/create_service.rb
+++ b/app/services/boards/issues/create_service.rb
@@ -10,11 +10,15 @@ module Boards
end
def execute
- create_issue(params.merge(label_ids: [list.label_id]))
+ create_issue(params.merge(issue_params))
end
private
+ def issue_params
+ { label_ids: [list.label_id] }
+ end
+
def board
@board ||= parent.boards.find(params.delete(:board_id))
end