chg: [inbox:index] Sort messages by created datetime
parent
dc2bfcb6b2
commit
7d227a4387
|
@ -20,6 +20,12 @@ class InboxController extends AppController
|
||||||
public $quickFilterFields = ['scope', 'action', ['title' => true], ['comment' => true]];
|
public $quickFilterFields = ['scope', 'action', ['title' => true], ['comment' => true]];
|
||||||
public $containFields = ['Users'];
|
public $containFields = ['Users'];
|
||||||
|
|
||||||
|
public $paginate = [
|
||||||
|
'order' => [
|
||||||
|
'Inbox.created' => 'desc'
|
||||||
|
]
|
||||||
|
];
|
||||||
|
|
||||||
public function beforeFilter(EventInterface $event)
|
public function beforeFilter(EventInterface $event)
|
||||||
{
|
{
|
||||||
parent::beforeFilter($event);
|
parent::beforeFilter($event);
|
||||||
|
|
Loading…
Reference in New Issue