diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-02 08:04:02 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-02 08:04:02 +0000 |
commit | 45db74aa77a8032c0a22e3ffcde28a6901347e2b (patch) | |
tree | 85886258fc25df2ed956c91f65b295b32062079a | |
parent | ab468baa9e5619d9691ee190be2a35fe6dd54e15 (diff) | |
download | brdo-45db74aa77a8032c0a22e3ffcde28a6901347e2b.tar.gz brdo-45db74aa77a8032c0a22e3ffcde28a6901347e2b.tar.bz2 |
- Patch #37494 by darius / chx: fixed problem with dates.
-rw-r--r-- | includes/form.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc index 4121d961d..a31a92427 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -548,6 +548,8 @@ function expand_date($element) { 'year' => format_date(time(), 'custom', 'Y')); } + $element['#tree'] = TRUE; + // Determine the order of day, month, year in the site's chosen date format. $format = variable_get('date_format_short', 'm/d/Y'); $sort = array(); @@ -576,7 +578,6 @@ function expand_date($element) { '#type' => 'select', '#value' => $element['#value'][$type], '#attributes' => $element['#attributes'], - '#parents' => $parents, '#options' => $options, ); } |