summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-02 08:04:02 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-02 08:04:02 +0000
commit45db74aa77a8032c0a22e3ffcde28a6901347e2b (patch)
tree85886258fc25df2ed956c91f65b295b32062079a
parentab468baa9e5619d9691ee190be2a35fe6dd54e15 (diff)
downloadbrdo-45db74aa77a8032c0a22e3ffcde28a6901347e2b.tar.gz
brdo-45db74aa77a8032c0a22e3ffcde28a6901347e2b.tar.bz2
- Patch #37494 by darius / chx: fixed problem with dates.
-rw-r--r--includes/form.inc3
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,
);
}