[Vtigercrm-commits] [vtiger-commits] r6078 - /vtigercrm/trunk/modules/Leads/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 16 13:22:06 EDT 2006
Author: saraj
Date: Tue May 16 11:22:02 2006
New Revision: 6078
Log:
problem in default session creation fixed
Modified:
vtigercrm/trunk/modules/Leads/ListView.php
Modified: vtigercrm/trunk/modules/Leads/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/ListView.php (original)
+++ vtigercrm/trunk/modules/Leads/ListView.php Tue May 16 11:22:02 2006
@@ -50,6 +50,15 @@
$smarty = new vtigerCRM_Smarty;
$other_text=Array();
+if(!$_SESSION['lvs'][$currentModule])
+{
+ unset($_SESSION['lvs']);
+ $modObj = new ListViewSession();
+ $modObj->sorder = $sorder;
+ $modObj->sortby = $order_by;
+ $_SESSION['lvs'][$currentModule] = get_object_vars($modObj);
+}
+
if($_REQUEST['errormsg'] != '')
{
$errormsg = $_REQUEST['errormsg'];
@@ -167,15 +176,7 @@
$noofrows = $adb->num_rows($list_result);
//Storing Listview session object
-if(!$_SESSION['lvs'][$currentModule])
-{
- unset($_SESSION['lvs']);
- $modObj = new ListViewSession();
- $modObj->sorder = $sorder;
- $modObj->sortby = $order_by;
- $_SESSION['lvs'][$currentModule] = get_object_vars($modObj);
-}
-else
+if($_SESSION['lvs'][$currentModule])
{
setSessionVar($_SESSION['lvs'][$currentModule],$noofrows,$list_max_entries_per_page);
}
More information about the vtigercrm-commits
mailing list