Fixing multiple checkboxes causing blackHole of forms

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5739 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-10-09 18:02:17 +00:00
parent 363d07ddb7
commit 2806a2fb61

View file

@ -513,9 +513,9 @@ class SecurityComponent extends Object {
unset($controller->data[$key][$lookup]);
} elseif ($controller->data[$key][$lookup] === '0') {
$merge[] = $lookup;
$field[$newKey] = array_merge($merge, $field[$newKey]);
}
}
$field[$newKey] = array_merge($merge, $field[$newKey]);
$controller->data[$newKey] = Set::pushDiff($controller->data[$key], $controller->data[$newKey]);
unset($controller->data[$key]);
continue;