[Vtigercrm-commits] [vtiger-commits] r10976 - /vtigercrm/branches/5.0.3/modules/Home/UnifiedSearch.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed May 23 04:20:34 EDT 2007
Author: richie
Date: Wed May 23 02:20:28 2007
New Revision: 10976
Log:
* Fixed the issue in global search ie., now all records will be found instead of each module's current customview records, Fixed #3851
Modified:
vtigercrm/branches/5.0.3/modules/Home/UnifiedSearch.php
Modified: vtigercrm/branches/5.0.3/modules/Home/UnifiedSearch.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Home/UnifiedSearch.php (original)
+++ vtigercrm/branches/5.0.3/modules/Home/UnifiedSearch.php Wed May 23 02:20:28 2007
@@ -76,8 +76,12 @@
$oCustomView = '';
$oCustomView = new CustomView($module);
- $viewid = $oCustomView->getViewId($module);
- $listquery = $oCustomView->getModifiedCvListQuery($viewid,$listquery,$module);
+ //Instead of getting current customview id, use cvid of All so that all entities will be found
+ //$viewid = $oCustomView->getViewId($module);
+ $cv_res = $adb->query("select cvid from vtiger_customview where viewname='All' and entitytype='$module'");
+ $viewid = $adb->query_result($cv_res,0,'cvid');
+
+ $listquery = $oCustomView->getModifiedCvListQuery($viewid,$listquery,$module);
if ($module == "Calendar"){
if (!isset($oCustomView->list_fields['Close'])) $oCustomView->list_fields['Close']=array ( 'activity' => 'status' );
if (!isset($oCustomView->list_fields_name['Close'])) $oCustomView->list_fields_name['Close']='status';
More information about the vtigercrm-commits
mailing list