diff options
-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; |