fix: [inboxes:index] Fixed pagination target key

refacto/CRUDComponent
Sami Mokaddem 2023-12-12 09:52:33 +01:00
parent 2274fff424
commit d823190624
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ class InboxController extends AppController
public $paginate = [
'order' => [
'Inbox.created' => 'desc'
]
],
];
public function beforeFilter(EventInterface $event)

View File

@ -44,12 +44,12 @@ echo $this->element('genericElements/IndexTable/index_table', [
'fields' => [
[
'name' => '#',
'sort' => 'id',
'sort' => 'Inbox.id',
'data_path' => 'id',
],
[
'name' => 'created',
'sort' => 'created',
'sort' => 'Inbox.created',
'data_path' => 'created',
'element' => 'datetime'
],
@ -87,7 +87,7 @@ echo $this->element('genericElements/IndexTable/index_table', [
],
[
'name' => 'user',
'sort' => 'user_id',
'sort' => 'Inbox.user_id',
'data_path' => 'user',
'element' => 'user'
],