UserController: Ensure that the sort and dir parameters are being applied

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-12 15:49:45 +02:00
parent 2e0a444f13
commit a9f0fd0708
1 changed files with 10 additions and 6 deletions

View File

@ -16,6 +16,7 @@ class UserController extends Controller
*/
public function init()
{
parent::init();
$this->createTabs();
}
@ -79,12 +80,15 @@ class UserController extends Controller
$this->setupLimitControl();
$this->setupPaginationControl($this->view->users);
$this->setupSortControl(array(
'user_name' => $this->translate('Username'),
'is_active' => $this->translate('Active'),
'created_at' => $this->translate('Created at'),
'last_modified' => $this->translate('Last modified')
));
$this->setupSortControl(
array(
'user_name' => $this->translate('Username'),
'is_active' => $this->translate('Active'),
'created_at' => $this->translate('Created at'),
'last_modified' => $this->translate('Last modified')
),
$query
);
}
/**