The Name field is not marked as required when null in reason's edition

Description

I noticed an issue when I was executing OLMIS-4669. When one tries to change a reason's name to null, it's not impossible to so and an error modal occurs as it should, but the "Name" field isn't marked in red, with an exclamation mark, and the "This field is required" error message doesn't occur below the field, as it does in the same situation on other screens. The issue occurs on both browsers.

Reproduction steps:

  1. Log into the application as administrator.

  2. Navigate to Administration > Reasons.

  3. Click the "Edit" button next to any reason.

  4. Make the "Name" field blank and click the "Update Reason" button.

  5. The error modal opens but the "Name" field is not marked as required on the screen.

Expected results:

  • When one tries to change the reason's name to null, the "Name" field should be marked in red and with an exclamation mark and the "This field is required" error message should occur below the field.

Environment

None

Assignee

Unassigned

Reporter

Joanna Bebak

Labels

Epic Link

Components

Priority

Minor
Configure