pluginsGLPI / formcreator

GLPI Plugin Formcreator (DOWNLOAD : https://github.com/pluginsGLPI/formcreator/releases)
http://www.teclib-edition.com
GNU General Public License v3.0
174 stars 125 forks source link

LDAP Select, LDAP Directory error when creating Form in a subentity #2645

Open jcervantes-sipecom opened 2 years ago

jcervantes-sipecom commented 2 years ago

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:

  1. Create at least one LDAP Authentication
  2. Create a Subentity and go to it, not to the Root entity
  3. Create a new Form in this Subentity
  4. Create a section and a question LDAP Select type, clic en the select list LDAP Directory.
  5. See empty, close the Form not save the question
  6. In the same Form, go to Root Entity.
  7. In the same section create a question LDAP Select type, and select list LDAP Directory.
  8. 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

image

image

GLPI / Plugins (please complete the following information):

image

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.

btry commented 2 years ago

Hi

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.

https://github.com/pluginsGLPI/formcreator/pull/2482