BUG 11084 PMTables list, sorts only by page.
Was added some validations to make 'PMTables list' sort all pages.
This commit is contained in:
@@ -877,6 +877,16 @@ class AdditionalTables extends BaseAdditionalTables
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($_POST['sort'])) {
|
||||||
|
if ($_POST['dir'] == 'ASC') {
|
||||||
|
eval('$oCriteria->addAscendingOrderByColumn(AdditionalTablesPeer::' . $_POST['sort'] . ');');
|
||||||
|
} else {
|
||||||
|
eval('$oCriteria->addDescendingOrderByColumn(AdditionalTablesPeer::' . $_POST['sort'] . ');');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
//$oCriteria->addAscendingOrderByColumn(AdditionalTablesPeer::ADD_TAB_UID);
|
||||||
|
}
|
||||||
|
|
||||||
$criteriaCount = clone $oCriteria;
|
$criteriaCount = clone $oCriteria;
|
||||||
$count = AdditionalTablesPeer::doCount($criteriaCount);
|
$count = AdditionalTablesPeer::doCount($criteriaCount);
|
||||||
|
|
||||||
|
|||||||
@@ -194,6 +194,7 @@ Ext.onReady(function(){
|
|||||||
|
|
||||||
store = new Ext.data.GroupingStore( {
|
store = new Ext.data.GroupingStore( {
|
||||||
autoLoad: false,
|
autoLoad: false,
|
||||||
|
remoteSort: true,
|
||||||
proxy : new Ext.data.HttpProxy({
|
proxy : new Ext.data.HttpProxy({
|
||||||
url: 'pmTablesProxy/getList' + (PRO_UID? '?pro_uid='+PRO_UID: '')
|
url: 'pmTablesProxy/getList' + (PRO_UID? '?pro_uid='+PRO_UID: '')
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user