fields icon indicating copy to clipboard operation
fields copied to clipboard

Bad translation for dropdown having same `name` as another one

Open cedric-anne opened this issue 6 years ago • 0 comments

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

  1. Create a container Container 1.
  2. Create a dropdown Dropdown 1 in Container 1.
  3. Create a container Container 2 that adds a tab in Computer assets.
  4. Create a dropdown Dropdown 1 in Container 2.
  5. Change translation in current language of Dropdown 1 in Container 2 to A 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.

cedric-anne avatar May 16 '18 15:05 cedric-anne