You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Date / Birthday constraint works properly only if I write incorrect number to any of the fields. When I edit some of the values to string I keep getting error 500 (ErrorException) because checkdate expects parameters to be integers. Although this happens only if someone manually overrides values in select, I still think it should be consistent with other validators and simply return error message saying the format is wrong.
The text was updated successfully, but these errors were encountered:
Commits
-------
2582fcb Added tests for string fix in DateTimeToArrayTransformer (8351a11).
8351a11 Added check for array fields to be integers in reverseTransform method. This prevents checkdate from getting strings as arguments and throwing incorrect ErrorException when submitting form with malformed (string) data in, for example, Date field. #2609
Discussion
----------
Fix for #2609
Second take for fix for #2609, hope it's ok now. Tests are failing without my fix and passing with it.
* 2.0:
[Form] fixed previous merge
[Form] simplified previous merge
Also identify FirePHP by the X-FirePHP-Version header
[TwigBundle] Extract output buffer cleaning to method
[TwigBundle] Do not clean output buffering below initial level
Fixed rendering of FileType (value is not a valid attribute for input[type=file])
Added tests for string fix in DateTimeToArrayTransformer (8351a11).
Added check for array fields to be integers in reverseTransform method. This prevents checkdate from getting strings as arguments and throwing incorrect ErrorException when submitting form with malformed (string) data in, for example, Date field. #2609
[Translation] removed unneeded methods
[Translation] added detection for circular references when adding a fallback catalogue
[DomCrawler] trim URI in getURI
[Yaml][Tests] Fixed missing locale string for Windows platforms which caused test to fail
Date / Birthday constraint works properly only if I write incorrect number to any of the fields. When I edit some of the values to string I keep getting error 500 (
ErrorException
) becausecheckdate
expects parameters to be integers. Although this happens only if someone manually overrides values in select, I still think it should be consistent with other validators and simply return error message saying the format is wrong.The text was updated successfully, but these errors were encountered: