-
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
Field validation is conflicting between block level and page level #1179
Comments
Closing under the assumption that this does indeed only happen with inline-editable blocks. |
@GuySartorelli This is also happening to non inline-editable blocks. |
Thanks for that extra context. I've reopened and labelled as a bug. |
For my dumb monkey brain, the I'm tempted to say that maybe we fold this back in this other card. #329 |
That's entirely irrelevant to the bug, which is that a field error for the block is being displayed against the page. This bug should be fixable (i.e. don't display the error against the page's field because it has nothing to do with that field) without implementing validation for the block itself (which is out of scope, and that part will explicitly be handled in the card you've linked to) |
@GuySartorelli had a lot of great question on this related card |
Related - contains a little research on the current state of validation on elemental - #329 (comment) |
Will be resolved by #1214 |
Resolved by #1214 - will be released in 5.3.0 |
Module version(s) affected
5.1.1
Description
Here's an edge case that would cause the validation message to be confusing, hopefully this is the right place to raise this issue.
I have a block that has a required
Title
field, and when I hit publish on the page level, the validation message is attached to the page Title.How to reproduce
This validation is from the block (BaseElement)
You would see that the validation message attached to the page field is coming from the block.
Possible Solution
No response
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)The text was updated successfully, but these errors were encountered: