Skip to content

Fix creating task bug when user is in non-English language

Kun Qian requested to merge gitlab-jh/jh-team/gitlab:fix-create-task-bug into master

What does this MR do and why?

The translated type name is wrongly used for type search in https://gitlab.com/gitlab-org/gitlab/-/blob/e6fdb097c30ac5b6711d2415c5aafcb0e14593f4/app/assets/javascripts/work_items/components/work_item_links/work_item_links_form.vue#L158 , it result error in createWorkItemMutation graphql query when user is in non-English language and create a task in an issue.

This MR add a new field value to the map, so that the type could be correctly found and requested to the api.

Screenshots or screen recordings

before after
QQ20221209-170956-HD QQ20221209-174011-HD

How to set up and validate locally

  1. change language to non-English
  2. create task in a issue

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

/cc @daveliu @orozot @JeremyWuuuuu

Edited by Kun Qian

Merge request reports

Loading