Closed (fixed)
Project:
Date
Version:
6.x-2.x-dev
Component:
Date Popup
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2011 at 07:35 UTC
Updated:
2 Feb 2011 at 20:20 UTC
If a datefield element is set with a #default_value = '2010-09-22 09:00:00' then when the element is processed, two subelements - date, time - is created each with a default value. Then when form.inc calls form_set_value for the parent datefield element and the two child elements, the form_state value is corrupted - it becomes '0010-09-22 09:00:00'
The patch processes prevents the processing of the date and time child elements. In order not to break rendering, I manually set the #name attribute of the child elements and set #input = FALSE.
| Comment | File | Size | Author |
|---|---|---|---|
| date-processing.patch | 2.64 KB | developer-x |
Comments
Comment #1
developer-x commentedI've been testing this fix and it appears solid - I've committed to cvs