[Vtigercrm-commits] [vtiger-commits] r10876 - /vtigercrm/branches/5.0.3/include/utils/SearchUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sat May 12 07:40:12 EDT 2007


Author: saraj
Date: Sat May 12 05:40:05 2007
New Revision: 10876

Log:
Account Name (basic) search in Potentials - fixed. Fixes #3706

Modified:
    vtigercrm/branches/5.0.3/include/utils/SearchUtils.php

Modified: vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/SearchUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/SearchUtils.php Sat May 12 05:40:05 2007
@@ -311,7 +311,9 @@
 	                 $module = 'Contacts';
 	                 $search_field = 'lastname';
 	       }
-			
+		if($search_field == "accountname")
+			$search_field = "account_id";
+
 		$qry="select vtiger_field.columnname,tablename from vtiger_tab inner join vtiger_field on vtiger_field.tabid=vtiger_tab.tabid where name='".$module."' and (fieldname='".$search_field."' or columnname='".$search_field."')";
 		$result = $adb->query($qry);
 		$noofrows = $adb->num_rows($result);





More information about the vtigercrm-commits mailing list