Commit 4a56a6a1 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'rs-boards-issues-create-service-parity' into 'master'

Bring CE-EE parity to app/services/boards/issues/create_service.rb

See merge request gitlab-org/gitlab-ce!19093
parents acdb7435 9251a1bf
...@@ -10,11 +10,15 @@ module Boards ...@@ -10,11 +10,15 @@ module Boards
end end
def execute def execute
create_issue(params.merge(label_ids: [list.label_id])) create_issue(params.merge(issue_params))
end end
private private
def issue_params
{ label_ids: [list.label_id] }
end
def board def board
@board ||= parent.boards.find(params.delete(:board_id)) @board ||= parent.boards.find(params.delete(:board_id))
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment