chg: [inbox:index] Sort messages by created datetime

cli-modification-summary
Sami Mokaddem 2022-01-21 09:48:53 +01:00 committed by Sami Mokaddem
parent dc2bfcb6b2
commit 7d227a4387
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,12 @@ class InboxController extends AppController
public $quickFilterFields = ['scope', 'action', ['title' => true], ['comment' => true]];
public $containFields = ['Users'];
public $paginate = [
'order' => [
'Inbox.created' => 'desc'
]
];
public function beforeFilter(EventInterface $event)
{
parent::beforeFilter($event);