Skip to content
Snippets Groups Projects
Commit c0a43c50 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #40765 by chx: fixed problem with form types.

parent dd2fdd12
Branches
Tags
No related merge requests found
......@@ -539,7 +539,15 @@ function expand_date($element) {
$options = drupal_map_assoc(range(1900, 2050));
break;
}
$element[$type] = array('#type' => 'select', '#value' => $element['#value'][$type], '#attributes' => $element['#attributes'], '#parents' => $element['#parents'], '#options' => $options, '#tree' => TRUE);
$parents = $element['#parents'];
$parents[] = $type;
$element[$type] = array(
'#type' => 'select',
'#value' => $element['#value'][$type],
'#attributes' => $element['#attributes'],
'#parents' => $parents,
'#options' => $options,
);
}
return $element;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment