glpi
glpi copied to clipboard
Mandatory fields not highlighted when changing ticket category to one with a template
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- [x] I have searched the existing issues
Version
11.0.0-beta5 and 10.0.18
Bug description
When modifying the category of an existing GLPI ticket to a category associated with a ticket template containing mandatory fields, these mandatory fields are not displayed or highlighted. This causes the save operation to fail if any required fields are left unfilled. The validation error occurs only during saving (too late), rather than when the category is selected.
Expected Behavior: When selecting a new category linked to a template with mandatory fields, GLPI should immediately:
- Display all associated mandatory fields
- Highlight/indicate required fields (e.g., with red asterisks)
- Prevent saving until all requirements are met
Current Behavior:
- No visual indication of new mandatory fields when changing categories
- User only discovers missing fields upon save attempt
- Workflow interruption with validation error after form completion
Relevant log output
Page URL
front/ticket.form.php?id=X
Steps To reproduce
- Enter to a previously created ticket
- Modify its category to one using a template with mandatory fields
- Observe missing field highlighting
- Attempt to save without filling new fields
- Receive late validation error
Your GLPI setup information
No response
Anything else?
No response