fix: [crud:index] requestedEntryAmount doesn't reset the query anymore

pull/121/head
Sami Mokaddem 2022-11-14 15:55:07 +01:00
parent a00d8e680b
commit 0b26bd629f
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class CRUDComponent extends Component
if ($this->metaFieldsSupported()) {
$query = $this->includeRequestedMetaFields($query);
}
$query = $this->setRequestedEntryAmount($query);
$this->setRequestedEntryAmount();
$data = $this->Controller->paginate($query, $this->Controller->paginate ?? []);
if (isset($options['afterFind'])) {
$function = $options['afterFind'];