Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Mandatory fields are validated even when the container is hidden by conditions

Abierto
#1,270 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
php
Área
backend

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:

  1. Create a new ticket.
  2. Select a ticket type or category that does not match the display conditions.
  3. The container is correctly hidden.
  4. Save the ticket.
  5. 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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pluginsGLPI/fields

Todos los issues de pluginsGLPI/fields

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.