BUG 9015 Cases List Order SOLVED
- In the user list to sort by any field is not ordered only the current page and so all the listing grid. - RemoteSort attribute was added to activate the update by ajax and all you can sort the list in addition to increasing the query in ajax options which have listed.
This commit is contained in:
@@ -345,6 +345,8 @@ try {
|
||||
$limit = isset($_REQUEST['limit']) ? $_REQUEST['limit'] : $limit_size;
|
||||
$filter = isset($_REQUEST['textFilter']) ? $_REQUEST['textFilter'] : '';
|
||||
$auths = isset($_REQUEST['auths']) ? $_REQUEST['auths'] : '';
|
||||
$sort = isset($_REQUEST['sort']) ? $_REQUEST['sort'] : '';
|
||||
$dir = isset($_REQUEST['dir']) ? $_REQUEST['dir'] : 'ASC';
|
||||
$aUsers = Array();
|
||||
if ($auths != ''){
|
||||
$aUsers = $RBAC->getListUsersByAuthSource($auths);
|
||||
@@ -406,6 +408,14 @@ try {
|
||||
}else if ($totalRows==0 && $auths != ''){
|
||||
$oCriteria->add(UsersPeer::USR_UID,'',Criteria::IN);
|
||||
}
|
||||
if ($sort != '') {
|
||||
if ($dir == 'ASC') {
|
||||
$oCriteria->addAscendingOrderByColumn($sort);
|
||||
}
|
||||
else {
|
||||
$oCriteria->addDescendingOrderByColumn($sort);
|
||||
}
|
||||
}
|
||||
$oCriteria->setOffset($start);
|
||||
$oCriteria->setLimit($limit);
|
||||
$oDataset = UsersPeer::DoSelectRs ($oCriteria);
|
||||
|
||||
Reference in New Issue
Block a user