When the Use checkdigit box is checked, this patch does work to alert the user that they have entered an invalid barcode.
However, the user has no way to dismiss the warning and proceed to save the item with the invalid barcode. In previous versions of Evergreen, entering an invalid barcode prompted a warning only, it was still possible to proceed and save the item.
Unchecking the checkbox did not allow saving without reloading the page reentering the data.
I'm not sure we can assume a user would never want to save an item with an invalid barcode.
When the Use checkdigit box is checked, this patch does work to alert the user that they have entered an invalid barcode.
However, the user has no way to dismiss the warning and proceed to save the item with the invalid barcode. In previous versions of Evergreen, entering an invalid barcode prompted a warning only, it was still possible to proceed and save the item.
Unchecking the checkbox did not allow saving without reloading the page reentering the data.
I'm not sure we can assume a user would never want to save an item with an invalid barcode.