OrchardCore.Commerce
OrchardCore.Commerce copied to clipboard
ProductPart SKU field editor vanishes after failed new content creation (OCC-232)
Describe the bug
If you forget to fill out the SKU field, it correctly returns with an "SKU must not be empty." error message, but then the input field vanishes so it's impossible to fix it and you have to recreate the content item from scratch.
To Reproduce
Steps to reproduce the behavior:
- Go to Admin > Content > Content Items.
- Click New > Product
- Fill in any field except SKU.
- Click the Publish button.
- Observe the failure with the "SKU must not be empty." error message.
- Observe the lack of an "SKU" field (screenshot below).
Expected behavior
- There should be client side validation against empty SKU field.
- If the server side validation fails, the SKU editor should still be displayed.