Describe the bug
It's not possible to select LDAP Directory with Type LDAP Select, when the Form is created in a Subentity, or when the form is editing in a Subentity, not in the Root entity.
To Reproduce
Steps to reproduce the behavior:
Create at least one LDAP Authentication
Create a Subentity and go to it, not to the Root entity
Create a new Form in this Subentity
Create a section and a question LDAP Select type, clic en the select list LDAP Directory.
See empty, close the Form not save the question
In the same Form, go to Root Entity.
In the same section create a question LDAP Select type, and select list LDAP Directory.
As you can see the LDAP Directory list is diplayed, just in Root Entity.
Expected behavior
The ability of selecting LDAP Directory, in an entity and subentity, not just in the Root
Screenshots
GLPI / Plugins (please complete the following information):
GLPI version: 9.5.7
Plugin version: 2.12.5
I have a problem with Setup > General, I'm getting Item Not Found, I don't know why, so this is my print screen from my plugins:
Desktop (please complete the following information):
OS: Windows 10
Browser Edge
Version 99.0.1150.39 (Official build) (64-bit)
Additional context
The tests and screenshots are from my test environment, but this bug is also in my production environment.
Read carefully the comments in the following patch, then decide if you should apply it or not. It should solve your problem, but will introduce some other concerns.
Describe the bug It's not possible to select LDAP Directory with Type LDAP Select, when the Form is created in a Subentity, or when the form is editing in a Subentity, not in the Root entity.
To Reproduce Steps to reproduce the behavior:
Expected behavior The ability of selecting LDAP Directory, in an entity and subentity, not just in the Root
Screenshots
GLPI / Plugins (please complete the following information):
Desktop (please complete the following information):
Additional context The tests and screenshots are from my test environment, but this bug is also in my production environment.