-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
BUG: Regexvalidator option throws error on apply #3691
Comments
As the triggering logic is in the ui the issue was moved here. See my explanation for a good fix:
|
Originally posted by @lorenzulrich in neos/flow-development-collection#3134 (comment):
|
@lorenzulrich yes that might have made sense when introducing this ^^ But i guess its to late for that discussion, and i would just treat |
I'm note sure if it's too late to fix this. As this currently only can work when the (to be abandoned) Flow patch is applied, it would not be really breaking. |
That is true, but i think this is fine. On the server we are either way only interested in true or false and not about the message so unsetting this option is hacky but straight forward. Eventually this buggy validation concept will hopefully be superseded by neos/neos-development-collection#4631. One day. |
My proposed fix: #3692 |
Is there an existing issue for this?
Current Behavior
If I use the
validationErrorMessage
option for theNeos.Neos/Validation/RegularExpressionValidator
on property, introduced here: #2996.And then try to apply a change to this property, I get an
Unsupported validation option(s) found
-error:Expected Behavior
I would expect to be able to use this option without issues.
Steps To Reproduce
Add the validationErrorMessage option to a RegularExpressionValidator, used as a property validator in the yaml NodeType definition.
Example:
Try to apply a change to the property using this validation.
=> Error
Environment
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: