Category translations are not applied in the "Tree Cascade Dropdown" question
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- PHP
- Star
- 4
- Fork
- 4
- Merge trung bình
- 7 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 3
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pluginsGLPI/advancedforms
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
pluginsGLPI/advancedforms#34 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
pluginsGLPI/advancedforms#29 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
pluginsGLPI/advancedforms#28 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
pluginsGLPI/advancedforms#27 ·
-
Fatal Compile Error: Class GlpiPlugin\Advancedforms\Model\QuestionType\TreeCascadeDropdownQuestion Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
pluginsGLPI/advancedforms#24 · 1 bình luận ·
Tất cả issue của pluginsGLPI/advancedforms
Issue tương tự
-
priority: p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nextcloud/fulltextsearch#1011 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
phpstan/phpstan-doctrine#794 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Automattic/static-site-importer#1767 ·