[Vtigercrm-commits] [vtiger-commits] r11125 - /vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 29 08:16:17 EDT 2007
Author: richie
Date: Tue May 29 06:16:10 2007
New Revision: 11125
Log:
null handling for is not null and does not contains criteria done
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 Tue May 29 06:16:10 2007
@@ -617,7 +617,7 @@
break;
case 'dcts':
- $where_string = $searchfield." not like '%".$searchstring."%' ";
+ $where_string = $searchfield." not like '%".$searchstring."%' or ".$searchfield." is null";
if($searchstring == NULL)
$where_string = "(".$searchfield." not like '' or ".$searchfield." is not NULL)";
break;
@@ -629,7 +629,9 @@
break;
case 'isn':
- $where_string = $searchfield." <> '".$searchstring."' ";
+ $where_string = $searchfield." <> '".$searchstring."' or ".$searchfield." is null";
+ if($searchstring == NULL)
+ $where_string = "(".$searchfield." not like '' or ".$searchfield." is not NULL)";
break;
case 'bwt':
More information about the vtigercrm-commits
mailing list