summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/graphql/mutations/issues/bulk_update.rb4
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