Fix creating task bug when user is in non-English language
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
- change language to non-English
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Kun Qian