mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Added fix for #1317.
Method would return true on the first loop if persistModel was set to true. git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3756 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
add6e512e7
commit
6af7c6cca9
1 changed files with 0 additions and 1 deletions
|
@ -349,7 +349,6 @@ class Controller extends Object {
|
||||||
$this->_persist($modelClass . 'registry', true, $object, 'registry');
|
$this->_persist($modelClass . 'registry', true, $object, 'registry');
|
||||||
$this->_persist($modelClass, true, $object);
|
$this->_persist($modelClass, true, $object);
|
||||||
$this->modelNames[] = $modelClass;
|
$this->modelNames[] = $modelClass;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return $this->cakeError('missingModel', array(array('className' => $modelClass, 'webroot' => '', 'base' => $this->base)));
|
return $this->cakeError('missingModel', array(array('className' => $modelClass, 'webroot' => '', 'base' => $this->base)));
|
||||||
|
|
Loading…
Reference in a new issue