From c0a43c50dcbb4ddc11c454832b31abed40370e7c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 14 Dec 2005 13:22:19 +0000 Subject: - Patch #40765 by chx: fixed problem with form types. --- includes/form.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'includes/form.inc') diff --git a/includes/form.inc b/includes/form.inc index a11d95692..fd1dc8482 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -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; -- cgit v1.2.3