Closed (fixed)
Project:
Field Validation
Version:
7.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2013 at 15:05 UTC
Updated:
25 Jan 2017 at 12:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
s.riciu commentedOn a Drupal 7.20 site, using Field Validation Module 7.x-2.3, for a Date of Birth field, I entered a date that does not exist, 32-13-1980 and I got the following errors:
which are correct.
But I also got the following warnings:
I have attached a screenshot with the errors.
Can you help me?
Comment #2
g089h515r806 commentedTest it with following code:
Comment #3
s.riciu commentedI had
instead of having
and for my example I used the following code:
and it worked.
Thanks anyway.
Comment #4
g089h515r806 commentedAll validator validate against on a string. I do no know why your data is a array.
Comment #5
hanskuiters commentedI ran into the same problem. I found out that the Date API datefield format setting plays a role in this.
If the submitted value validates against the datefield format setting right, then a string is returned.
If the submitted value validates against the datefield format setting wrong, then an array is returned.
So, is this a Date API thing or does Field Validation its validaiton too early in the proces?