From 1d97169aedfc7402349d206ea40eb127917a2bc2 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 21 Feb 2023 12:32:32 +0000 Subject: Add latest changes from gitlab-org/gitlab@15-9-stable-ee --- app/graphql/mutations/issues/bulk_update.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/graphql/mutations') diff --git a/app/graphql/mutations/issues/bulk_update.rb b/app/graphql/mutations/issues/bulk_update.rb index 7f3d5f6ffb2..3d80f119079 100644 --- a/app/graphql/mutations/issues/bulk_update.rb +++ b/app/graphql/mutations/issues/bulk_update.rb @@ -82,7 +82,9 @@ module Mutations prepared[argument] = model_ids_from(attributes[argument]) end - prepared.transform_keys(param_mappings) + # Ruby 3+: This can be simplified to: + # prepared.transform_keys(param_mappings) + prepared.transform_keys { |key| param_mappings[key] || key } end def param_mappings -- cgit v1.2.3