formcreator icon indicating copy to clipboard operation
formcreator copied to clipboard

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

Open jcervantes-sipecom opened this issue 2 years ago • 1 comments

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):

  • 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:

image

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.

jcervantes-sipecom avatar Mar 18 '22 22:03 jcervantes-sipecom

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

btry avatar Mar 21 '22 07:03 btry