summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-14 13:22:19 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-14 13:22:19 +0000
commitc0a43c50dcbb4ddc11c454832b31abed40370e7c (patch)
treeaf9b87c7d716cf112e2235bc37511a9b1396e340
parentdd2fdd128dfb5998479f9edf89d0cfa3afe53fbd (diff)
downloadbrdo-c0a43c50dcbb4ddc11c454832b31abed40370e7c.tar.gz
brdo-c0a43c50dcbb4ddc11c454832b31abed40370e7c.tar.bz2
- Patch #40765 by chx: fixed problem with form types.
-rw-r--r--includes/form.inc10
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;