-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: validation: "strict"
does not work
#1273
Comments
Passed this along to matias, as Forms/Blueprints are his speciality :) |
Note that blueprints need to be loaded and initialized now:
|
@Sommerregen Unfortunately we have to revert this change from Grav 1.6 because of too many plugins and forms break because of the fix. :( |
…aintain old `validation: strict` behavior [#1273]
@Sommerregen We decided to put this feature under a configuration option as way too many forms stop working because of devtools added a bad configuration option which people forgot to remove. |
Dear Grav Team,
I'm pretty sure this bug was introduced a while ago (when re-factoring the Blueprint classes). But today I noticed that
validation: "strict"
cannot be "switched on", i.e.,$blueprint->validate()
never throws an error even if you provide data that do not exists in the blueprint definition. MWE:Then with PHP:
The text was updated successfully, but these errors were encountered: