diff options
author | Robert Speicher <rspeicher@gmail.com> | 2018-05-22 11:34:06 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2018-05-22 14:16:56 -0500 |
commit | 9251a1bfd744ffe344e7ea55f1baa30e6ea83fa7 (patch) | |
tree | 022f6e4e0c1ac4b77b088e2af68487833c5c6d4d /app/services/boards | |
parent | 4c63e904ec9118f44b83496867d9e3cc0d3082c1 (diff) | |
download | gitlab-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.rb | 6 |
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 |