mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
returning the correct query in beforeFind in case callbacks return true
This commit is contained in:
parent
1651257919
commit
33705f24bf
1 changed files with 1 additions and 1 deletions
|
@ -2614,7 +2614,7 @@ class Model extends Object implements CakeEventListener {
|
||||||
if ($event->isStopped()) {
|
if ($event->isStopped()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$query = $event->data[0];
|
$query = $event->result === true ? $event->data[0] : $event->result;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
|
|
Loading…
Reference in a new issue