[Vtigercrm-commits] [vtiger-commits] r10795 - /vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 26 13:11:03 EDT 2007
Author: saraj
Date: Thu Apr 26 11:10:57 2007
New Revision: 10795
Log:
The doesn't contains crietria is not working properly in the Advance Search of HelpDesk - fixed. Fixes #3391
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 Thu Apr 26 11:10:57 2007
@@ -521,7 +521,10 @@
case 'cts':
$where_string = $searchfield." like '%".$searchstring."%' ";
if($searchstring == NULL)
- $where_string = $searchfield." like ''";
+ if($searchfield !='vtiger_products.productname')
+ $where_string = $searchfield." like ''";
+ else
+ $where_string = $searchfield." is NULL";
break;
case 'dcts':
@@ -532,6 +535,8 @@
case 'is':
$where_string = $searchfield." = '".$searchstring."' ";
+ if($searchstring == NULL && $searchfield =='vtiger_products.productname')
+ $where_string = $searchfield." is NULL";
break;
case 'isn':
More information about the vtigercrm-commits
mailing list