-
Notifications
You must be signed in to change notification settings - Fork 35
string fields are not marked as mandatory when empty #548
Comments
hmmm, i think this one can and shall be completely solved on backend: metasfresh/metasfresh#1173 |
update: we workaround this issue on backend side, i.e. for text fields, null and empty shall be considered as "field is not field"... so in case it's mandatory, it will be painted accordingly. |
We are marking mandatory field in that way (and it is okay, because it relays fully on frontend) but in my opinion we should do not force |
True validation shall be made on backend because it's the place to save correct data. Front-end is responsible for displaying validation results, not validation itself. We should stick to one place with validation and not spread it because it will end up not being debuggable. |
Thanks guys for checking it. |
Type of issue
Bug
Current behavior
string fields (e.g. Name) are not marked as mandatory when you remove them
Expected behavior
field should get red and marked as mandatory
Steps to reproduce
=> product is saved, even if the name is mandatory.
=> no red mark to see that the name is not set
=> name is empty not null, probably that's why
Window: 140
Entity: e.g. 1000001
The text was updated successfully, but these errors were encountered: