diff --git a/includes/form.inc b/includes/form.inc index 4121d961d149f3f9007307fcbc9e0236282e64e5..a31a92427e888a065b7b2a104f4039a5dc975b3f 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, ); }