diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-14 13:22:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-14 13:22:19 +0000 |
commit | c0a43c50dcbb4ddc11c454832b31abed40370e7c (patch) | |
tree | af9b87c7d716cf112e2235bc37511a9b1396e340 /includes | |
parent | dd2fdd128dfb5998479f9edf89d0cfa3afe53fbd (diff) | |
download | brdo-c0a43c50dcbb4ddc11c454832b31abed40370e7c.tar.gz brdo-c0a43c50dcbb4ddc11c454832b31abed40370e7c.tar.bz2 |
- Patch #40765 by chx: fixed problem with form types.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/form.inc | 10 |
1 files changed, 9 insertions, 1 deletions
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; |