-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support validation within in-line edit context #699
Comments
Also relevant: #329 |
DataObject::validate
within in-line edit context
I don't think this is an appropriate behaviour. When saving a page, if one field is valid and another is invalid, the valid field doesn't get saved to the record. Similarly, when saving a page, an elemental block should be treated as a series of fields belonging to that page. |
Duplicate of #329 |
@maxime-rainville Wasn't this the card we're using to track fixing up the UI? |
I would rather use this card to track the UI changes related to Elemental validation |
Description
Currently the in-line editing editor and forms provide no detail on errors that have been added with
validate()
or via a form validator returned fromgetCMSCompositeValidator()
.Investigation
See #688. Specifically #688 (comment) .
There's also an investigation branch:
https://github.com/creative-commoners/silverstripe-elemental/tree/pulls/4.1/validation-refactor
A/Cs:
addError($message)
appear on a block level within the in-line edit form after saving an individual blockaddError($message)
appear on a block level within the in-line edit form after saving the page as a wholeaddFieldError($field, $message)
appear on a form field (holder) level within the in-line edit form after saving an individual blockaddFieldError($field, $message)
appear on a form field (holder) level within the in-line edit form after saving the page as a wholeThe text was updated successfully, but these errors were encountered: