mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
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:
parent
363d07ddb7
commit
2806a2fb61
1 changed files with 1 additions and 1 deletions
|
@ -513,9 +513,9 @@ class SecurityComponent extends Object {
|
||||||
unset($controller->data[$key][$lookup]);
|
unset($controller->data[$key][$lookup]);
|
||||||
} elseif ($controller->data[$key][$lookup] === '0') {
|
} elseif ($controller->data[$key][$lookup] === '0') {
|
||||||
$merge[] = $lookup;
|
$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]);
|
$controller->data[$newKey] = Set::pushDiff($controller->data[$key], $controller->data[$newKey]);
|
||||||
unset($controller->data[$key]);
|
unset($controller->data[$key]);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue