glpi icon indicating copy to clipboard operation
glpi copied to clipboard

Mandatory fields not highlighted when changing ticket category to one with a template

Open loyolajavi opened this issue 6 months ago • 0 comments

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:

  1. Display all associated mandatory fields
  2. Highlight/indicate required fields (e.g., with red asterisks)
  3. Prevent saving until all requirements are met

Current Behavior:

  1. No visual indication of new mandatory fields when changing categories
  2. User only discovers missing fields upon save attempt
  3. Workflow interruption with validation error after form completion

Relevant log output


Page URL

front/ticket.form.php?id=X

Steps To reproduce

  1. Enter to a previously created ticket
  2. Modify its category to one using a template with mandatory fields
  3. Observe missing field highlighting
  4. Attempt to save without filling new fields
  5. Receive late validation error

Your GLPI setup information

No response

Anything else?

No response

loyolajavi avatar Jun 05 '25 23:06 loyolajavi