Closed (fixed)
Project:
Date
Version:
6.x-2.x-dev
Component:
Date API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2008 at 22:43 UTC
Updated:
14 Jul 2012 at 19:21 UTC
Consider this situation:
So, if the form's validation function depends on these fields to be a DATE_DATETIME, it will fail, unless it accounts for the field being a DATE_ARRAY in a situation like this.
The included patch creates a flag for errors, set to TRUE whenever an error occurs within date_select_validate() itself, and checks this flag instead of form_get_errors() to decide whether to populate the field with a DATE_DATETIME.
| Comment | File | Size | Author |
|---|---|---|---|
| date_api_elements_select_validate.patch | 4.02 KB | c.lam |
Comments
Comment #1
karens commentedI didn't use this patch but I just committed a bunch of changes to improve the validation of date_select. Thanks!
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.