mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Fixes #3455, Secondary model array in model data causes corruption
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5898 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
c68aedb9c4
commit
f57fc45d6f
1 changed files with 1 additions and 1 deletions
|
@ -842,7 +842,7 @@ class Model extends Overloadable {
|
||||||
unset ($this->validationErrors[$x]);
|
unset ($this->validationErrors[$x]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($n == $this->name || is_array($y)) {
|
if ($n === $this->name) {
|
||||||
if ($x === $this->primaryKey) {
|
if ($x === $this->primaryKey) {
|
||||||
$this->id = $y;
|
$this->id = $y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue