Mandatory fields are validated even when the container is hidden by conditions
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 66/100
Línea de trabajo
Start by reproducing the issue in GLPI 11.0.8 with Fields plugin 1.24.4: attach a container to Tickets, add a required field, and hide the container through its conditions. Trace the ticket save validation for hidden containers; done means tickets save when only required fields in a hidden container are empty, while visible required fields remain validated.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
GLPI Version
11.0.8
Plugin version
1.24.4
Bug description
Hi,
I think I may have found an issue with mandatory fields and container visibility conditions.
Environment:
- GLPI: 11.0.8
- Fields plugin: 1.24.4
Configuration:
- A Fields container is attached to Tickets.
- The container is displayed only when:
- Ticket type = Request
- Category = Visitor Access
- Several fields inside the container are marked as "Required".
Observed behavior:
- Create a new ticket.
- Select a ticket type or category that does not match the display conditions.
- The container is correctly hidden.
- Save the ticket.
- The ticket cannot be saved because the required fields inside the hidden container are considered empty.
Expected behavior:
When a container is hidden by its conditions, required fields inside that container should not be validated.
Alternatively, mandatory validation should only apply when the container is visible.
Additional information:
- If I remove the "Required" flag from the fields, the ticket is saved correctly.
- The issue is reproducible with a single required field in the container.
Could you please confirm whether this is expected behavior, a limitation, or a bug?
Thank you.
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
No response
Anything else?
No response
- Lenguaje dominante
- PHP
- Estrellas
- 116
- Forks
- 82
- Merge medio
- 3 d 4 h
- PR fusionados (30 d)
- 18
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pluginsGLPI/fields
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
pluginsGLPI/fields#1280 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
pluginsGLPI/fields#1245 · 4 comentarios ·
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
pluginsGLPI/fields#1015 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
pluginsGLPI/fields#847 · 6 comentarios ·
Los mantenedores suelen responder en 2 días
Todos los issues de pluginsGLPI/fields
Issues similares
-
Daemon delete dialog: "Remove all ExApps" checkbox and `removeExApps` parameter have no effectAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 3 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
[Sync EN] Fix session read handler docs: false reports a failure, not a missing session (#5902)Abiertosync-en
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
[Sync EN] Fix session read handler docs: false reports a failure, not a missing session (#5902)Abiertosync-en
Dificultad 2/5 1-2 días Aptitud para principiantes 84/100
Los mantenedores suelen responder en 2 días
-
feature-request needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
aws/aws-sdk-php#3365 ·
Los mantenedores suelen responder en 1 día