Bad translation for dropdown having same `name` as another one
When multiple dropdown from different containers are using the same name, at some places (i.e. not in all cases), displayed label is the one from first created dropdown.
To reproduce
- Create a container
Container 1. - Create a dropdown
Dropdown 1inContainer 1. - Create a container
Container 2that adds a tab inComputerassets. - Create a dropdown
Dropdown 1inContainer 2. - Change translation in current language of
Dropdown 1inContainer 2toA random label.
Actual result
Open the Container 2 tab in some computer form
-> Label of the field is A random label.
-> Tooltip located next to the field displays Show Dropdown 1.
Open the configuration page of the dropdown (plugins/fields/front/commondropdown.php?ddtype=dropdown1fielddropdown)
-> Title of the page and label of last item in breadcrumbs are Dropdown 1.
-> Label inside the Dropdowns dropdown is Additionnal fields - A random label
Expected result
Translations are either fully shared, either fully dissociated.
Versions used
GLPI 9.2.3. Fields 1.7.0 with 581acdef8dff13ce49650897e73931572d4c8676 fix.