Commit f2185037 authored by Dries's avatar Dries

- Patch #35630 by adrian: fixed problem with how form trees are build.

parent 22cf0b4e
......@@ -257,11 +257,18 @@ function _form_builder($form) {
$form[$key]['#tree'] = (isset($form[$key]['#tree'])) ? $form[$key]['#tree'] : $form['#tree'];
if ($form[$key]['#tree']) {
//continue tree
$parents = (array) $form['#parents'];
array_push($parents, $key);
if (!$form['#tree']) {
// begin tree
$parents = array($key);
}
else {
//continue tree
$parents = (array) $form['#parents'];
array_push($parents, $key);
}
}
else {
// no tree
$parents = array($key);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment