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

pull/93/head
Sami Mokaddem 2022-01-21 09:48:53 +01:00
parent a59f59ba0d
commit 7c557f6d85
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);