From 45db74aa77a8032c0a22e3ffcde28a6901347e2b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 2 Jan 2006 08:04:02 +0000 Subject: - Patch #37494 by darius / chx: fixed problem with dates. --- includes/form.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes') 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, ); } -- cgit v1.2.3