[Vtigercrm-commits] [vtiger-commits] r7969 - /vtigercrm/trunk/modules/Campaigns/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jul 12 09:15:08 EDT 2006
Author: richie
Date: Wed Jul 12 07:15:04 2006
New Revision: 7969
Log:
sorting - stored in session has been modified
Modified:
vtigercrm/trunk/modules/Campaigns/ListView.php
Modified: vtigercrm/trunk/modules/Campaigns/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/ListView.php (original)
+++ vtigercrm/trunk/modules/Campaigns/ListView.php Wed Jul 12 07:15:04 2006
@@ -51,15 +51,8 @@
}
//<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>>
-if($_REQUEST['order_by'] != '')
- $order_by = $_REQUEST['order_by'];
-else
- $order_by = (($_SESSION['CAMPAIGN_ORDER_BY'] != '')?($_SESSION['CAMPAIGN_ORDER_BY']):($focus->default_order_by));
-
-if($_REQUEST['sorder'] != '')
- $sorder = $_REQUEST['sorder'];
-else
- $sorder = (($_SESSION['CAMPAIGN_SORT_ORDER'] != '')?($_SESSION['CAMPAIGN_SORT_ORDER']):($focus->default_sort_order));
+$sorder = $focus->getSortOrder();
+$order_by = $focus->getOrderBy();
$_SESSION['CAMPAIGN_ORDER_BY'] = $order_by;
$_SESSION['CAMPAIGN_SORT_ORDER'] = $sorder;
More information about the vtigercrm-commits
mailing list