[Vtigercrm-commits] [vtiger-commits] r10913 - /vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 14 09:59:53 EDT 2007
Author: richie
Date: Mon May 14 07:59:47 2007
New Revision: 10913
Log:
* Fixed the issue in search, Fixed #3740#3741
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 Mon May 14 07:59:47 2007
@@ -306,7 +306,7 @@
$search_field = "parent_id";
}
//Check ends
- if(($module == "Calendar" || $module == "Invoice" ||$module == "Notes" || $module == "SalesOrder" || $module== "PurchaseOrder") && ($search_field == "contact_id"))
+ if(($module == "Calendar" || $module == "Invoice" || $module == "SalesOrder" || $module== "PurchaseOrder") && ($search_field == "contact_id"))
{
$module = 'Contacts';
$search_field = 'lastname';
@@ -543,7 +543,7 @@
$where_string = $searchfield." like '%".$searchstring."%' ";
if($searchstring == NULL)
if($searchfield !='vtiger_products.productname')
- $where_string = $searchfield." like ''";
+ $where_string = $searchfield." like '%%'";
else
$where_string = $searchfield." is NULL";
break;
More information about the vtigercrm-commits
mailing list