-
Notifications
You must be signed in to change notification settings - Fork 72
Closed
glpi-project/glpi
#22041Description
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.2
Plugin version
1.23.0
Bug description
When adding a Yes/No field as mandatory in a ticket form, the default value is set to No. However, if the user leaves the field as No, the form validation fails, and the ticket cannot be submitted. The mandatory check only works when the value is changed to Yes.
This means the mandatory field logic does not work correctly for Yes/No fields, as the default value "No" should be considered valid when the field is required.
Steps To reproduce
- Go to Fields plugin configuration.
- Add a new field of type Yes/No.
- Set the field as mandatory.
- Assign it to a ticket form.
- Create a new ticket and leave the field as No (default value).
- Try to submit the ticket.
Metadata
Metadata
Assignees
Labels
No labels