Entering a letter in the Year of Warranty Expiry field makes it required on Firefox

Description

During exploratory tests, I noticed that when one edits the data of a CCE inventory item and enters a non-numerical character in the "Year of Warranty Expiry" field on Firefox, the field gets cleared and then, one can't save changes, even though it's not a required field. The issue occurs only on Firefox, on Chrome, everything works correctly.

Reproduction steps:

  1. Log into the application as e.g. divo1.

  2. Go to CCE Management > CCE Inventory.

  3. Go to the edition of any item.

  4. Enter a non-numerical character in the "Year of Warranty Expiry" field.

  5. Click the "Save" button.

  6. The "This form is invalid" modal opens and the "This field must be a number" error message occurs, and the field seemingly gets cleared.

  7. Click the "Save" button.

  8. The changes aren't saved, even though the field is not an obligatory one. Instead, the "This form is invalid" modal opens and the "This field must be a number" error message occurs again.

Expected behavior:

  • After the "Year of Warranty Expiry" field is cleared, it should be possible to save the changes.

Environment

None

Assignee

Unassigned

Reporter

Joanna Bebak

Labels

Epic Link

Components

Priority

Minor
Configure