Skip to content

Conversation

@RomainLvr
Copy link
Contributor

Checklist before requesting a review

Please delete options that are not relevant.

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.
  • This change requires a documentation update.

Description

  • It fixes !40125
  • Here is a brief description of what this PR does

This PR fixes a GraphQL/HL API bug causing SQL errors when querying users for users that cannot view all entities. The User schema used the physical table name in a LEFT JOIN instead of the query table alias ('_'), which produced invalid SQL (unknown column glpi_users.id).
The change updates the JOIN to use the correct table alias so queries build valid SQL and the GraphQL User endpoint works consistently.

@trasher
Copy link
Contributor

trasher commented Nov 4, 2025

This probably need a test case

@trasher trasher merged commit 8aeb9cb into glpi-project:11.0/bugfixes Nov 5, 2025
10 checks passed
@cedric-anne cedric-anne added this to the 11.0.2 milestone Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants