From 22722659c233efb3b65bb35286ff07c192e3fc85 Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Mon, 8 May 2017 17:58:42 +0300 Subject: fix for Follow-up from "Backport of Multiple Assignees feature --- lib/api/helpers/common_helpers.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/api/helpers/common_helpers.rb') 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 -- cgit v1.2.1