Category translations are not applied in the "Tree Cascade Dropdown" question

Open
#55 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
php
Domain
frontend

Research direction

Start by comparing the Tree Cascade Dropdown question with the standard dropdown question for ticket categories, then trace how category labels are loaded for the initial tree and subsequent selections. The fix is complete when translated labels appear at every tree level, including a selectable root, in the logged-in user's language.

Written by the indexing model from the issue text.

Description

Code of Conduct
  • I agree to follow this project's Code of Conduct
Is there an existing issue for this?
  • I have searched the existing issues
GLPI Version

11.0.8

Plugin version

1.3.0

Bug description

Description

In a form using a "Tree Cascade Dropdown" question bound to ticket categories, the labels listed in the dropdowns are always displayed in their original language — the one used when the categories were created — regardless of the language of the logged-in user.

The translations entered in GLPI for those categories are ignored.

Environment

  • advancedforms plugin: 1.3.0
  • GLPI: 11.0.x
  • Question type: Tree Cascade Dropdown
  • Selected item type: Ticket categories

Expected result

The dropdowns display the labels translated into the user's language ("Hardware"), at every level of the tree — the same way a standard dropdown question already does.

Actual result

The dropdowns display the original labels ("Matériel"). Every level is affected: the first level as well as the subsequent levels loaded as the user makes a selection. The root of the tree, when made selectable, is affected too.

Relevant log output

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

Dominant language
PHP
Stars
4
Forks
4
Avg merge
7d 7h
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pluginsGLPI/advancedforms

All issues in pluginsGLPI/advancedforms

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.