Skip to content

Fix - Use translated itemtype name for reservation item select groups - #54

Merged
MyvTsv merged 2 commits into
mainfrom
fix/reservation-optgroup-itemtype-label
Sep 8, 2026
Merged

Fix - Use translated itemtype name for reservation item select groups#54
MyvTsv merged 2 commits into
mainfrom
fix/reservation-optgroup-itemtype-label

Conversation

@RomainLvr

Copy link
Copy Markdown
Contributor

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

The reservation item picker (Select2) grouped results using the raw PHP itemtype class name instead of its translated display name. This was invisible for core itemtypes like Computer or Monitor, but for custom assets it exposed the full namespace, e.g. Glpi\CustomAsset\TestcustomassetAsset instead of Test custom asset.

Screenshots (if appropriate):

Before

image

After

image

@RomainLvr RomainLvr self-assigned this Sep 8, 2026
@MyvTsv
MyvTsv merged commit 3fe6a54 into main Sep 8, 2026
3 checks passed
@MyvTsv
MyvTsv deleted the fix/reservation-optgroup-itemtype-label branch September 8, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants