diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-21 12:32:32 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-21 12:32:32 +0000 |
commit | 1d97169aedfc7402349d206ea40eb127917a2bc2 (patch) | |
tree | e517624cef681c020a0a670da456cd5827969912 | |
parent | a8f469d6f20198af6e888bbf8cc98d55fb53273e (diff) | |
download | gitlab-ce-1d97169aedfc7402349d206ea40eb127917a2bc2.tar.gz |
Add latest changes from gitlab-org/gitlab@15-9-stable-ee
-rw-r--r-- | app/graphql/mutations/issues/bulk_update.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 |