[Vtigercrm-commits] [vtiger-commits] r10381 - /vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 7 05:34:58 EST 2007
Author: saraj
Date: Wed Mar 7 03:34:49 2007
New Revision: 10381
Log:
fix for Advance Search failed in Calendar. Fixes #3114 --Minnie
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 Wed Mar 7 03:34:49 2007
@@ -328,6 +328,13 @@
{
$where="$table_name.$column_name like '%".$search_string."%' or vtiger_activity.eventstatus like '%".$search_string."%'";
}
+ elseif($table_name == "vtiger_activity" && $column_name == "sendnotification")
+ {
+ if(stristr($search_string,'yes'))
+ $where="$table_name.$column_name = 1";
+ if(stristr($search_string,'no'))
+ $where="$table_name.$column_name = 0";
+ }
elseif($table_name == "vtiger_pricebook" && $column_name == "active")
{
if(stristr($search_string,'yes'))
@@ -595,7 +602,13 @@
if(stristr($srch_val,'no'))
$adv_string .= " ".getSearch_criteria($srch_cond,NULL,'vtiger_pricebook.active')." ".$matchtype;
}
-
+ elseif($tab_col == "vtiger_activity.sendnotification")
+ {
+ if(stristr($srch_val,'yes'))
+ $adv_string .= " ".getSearch_criteria($srch_cond,"1",'vtiger_activity.sendnotification')." ".$matchtype;
+ if(stristr($srch_val,'no'))
+ $adv_string .= " ".getSearch_criteria($srch_cond,"0",'vtiger_activity.sendnotification')." ".$matchtype;
+ }
elseif(in_array($column_name,$column_array))
{
$adv_string .= getValuesforColumns($column_name,$srch_val)." ".$matchtype;
More information about the vtigercrm-commits
mailing list