mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 12:32:42 +00:00
Merge branch '1.3' into 2.0
Conflicts: app/webroot/index.php cake/console/templates/skel/webroot/index.php cake/libs/cake_session.php cake/libs/controller/components/email.php cake/libs/controller/scaffold.php cake/libs/model/datasources/dbo/dbo_oracle.php cake/libs/model/model_behavior.php cake/libs/view/pages/home.ctp cake/tests/cases/libs/controller/components/acl.test.php cake/tests/cases/libs/file.test.php
This commit is contained in:
commit
929bb5769e
84 changed files with 977 additions and 226 deletions
|
@ -793,8 +793,11 @@ class Controller extends Object {
|
|||
|
||||
$errors = array();
|
||||
foreach ($objects as $object) {
|
||||
$this->{$object->alias}->set($object->data);
|
||||
$errors = array_merge($errors, $this->{$object->alias}->invalidFields());
|
||||
if (isset($this->{$object->alias})) {
|
||||
$object =& $this->{$object->alias};
|
||||
}
|
||||
$object->set($object->data);
|
||||
$errors = array_merge($errors, $object->invalidFields());
|
||||
}
|
||||
|
||||
return $this->validationErrors = (!empty($errors) ? $errors : false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue