diff options
Diffstat (limited to 'includes/form.inc')
-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, ); } |