fix: [components:CRUD] Support of controller's paginate public variable
parent
7af31448cd
commit
a59f59ba0d
|
@ -96,7 +96,7 @@ class CRUDComponent extends Component
|
||||||
$query = $this->includeRequestedMetaFields($query);
|
$query = $this->includeRequestedMetaFields($query);
|
||||||
}
|
}
|
||||||
$this->Controller->loadComponent('Paginator');
|
$this->Controller->loadComponent('Paginator');
|
||||||
$data = $this->Controller->Paginator->paginate($query);
|
$data = $this->Controller->Paginator->paginate($query, $this->Controller->paginate ?? []);
|
||||||
if (isset($options['afterFind'])) {
|
if (isset($options['afterFind'])) {
|
||||||
$function = $options['afterFind'];
|
$function = $options['afterFind'];
|
||||||
if (is_callable($function)) {
|
if (is_callable($function)) {
|
||||||
|
|
Loading…
Reference in New Issue