Closed (works as designed)
Project:
Date
Version:
6.x-2.1
Component:
Date API
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 May 2009 at 21:29 UTC
Updated:
5 Feb 2012 at 13:05 UTC
Date_select fields that are not completely filled out are treated as empty and not flagged as being in error. For example, a non-required form field that's supposed to have a Y-m-d format but only has '2009', 'April' and '' selected will come back as FALSE rather than generating an error (like "date is required to complete date").
This is similar to #265076: Accept text input that omits hour & minute, even if the format expects it, in that incomplete elements are simply treated as empty - the difference is that I am expecting the input to be treated as an invalid rather than being silently ignored and treated as empty.
Comments
Comment #1
karens commentedIt behaves the way it was designed to behave, so this is not a bug, it is a feature request.
Comment #2
arlinsandbulte commentedFor 6.x-2.x, I am calling this "works as designed"
There has been some work & discussion in this area for 7.x-2.x:
#1417872: Date Select does no granularity validation unless year is filled out
#323852: Dropdowns shouldn't include a blank option when required