mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Another fix for Pull request 642
This commit is contained in:
parent
484c3ec688
commit
fbd2132300
1 changed files with 1 additions and 0 deletions
|
@ -2044,6 +2044,7 @@ class Model extends Object implements CakeEventListener {
|
||||||
|
|
||||||
if ($options['validate'] === 'first') {
|
if ($options['validate'] === 'first') {
|
||||||
$validates = $this->validateMany($data, $options);
|
$validates = $this->validateMany($data, $options);
|
||||||
|
$data = $this->data;
|
||||||
if ((!$validates && $options['atomic']) || (!$options['atomic'] && in_array(false, $validates, true))) {
|
if ((!$validates && $options['atomic']) || (!$options['atomic'] && in_array(false, $validates, true))) {
|
||||||
return $validates;
|
return $validates;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue