diff options
author | Valery Sizov <valery@gitlab.com> | 2017-05-08 17:58:42 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2017-05-11 19:11:49 +0300 |
commit | 22722659c233efb3b65bb35286ff07c192e3fc85 (patch) | |
tree | b72aa69a8c5c0783f9762ab262e22649264c0373 /lib | |
parent | 92bf7dfcb040e3e035fc87b0a70461f891284c98 (diff) | |
download | gitlab-ce-22722659c233efb3b65bb35286ff07c192e3fc85.tar.gz |
fix for Follow-up from "Backport of Multiple Assignees featurefixes_for_multiple_issue_assignees
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/helpers/common_helpers.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/api/helpers/common_helpers.rb b/lib/api/helpers/common_helpers.rb index 6236fdd43ca..322624c6092 100644 --- a/lib/api/helpers/common_helpers.rb +++ b/lib/api/helpers/common_helpers.rb @@ -2,11 +2,11 @@ module API module Helpers module CommonHelpers def convert_parameters_from_legacy_format(params) - if params[:assignee_id].present? - params[:assignee_ids] = [params.delete(:assignee_id)] + params.tap do |params| + if params[:assignee_id].present? + params[:assignee_ids] = [params.delete(:assignee_id)] + end end - - params end end end |