[Vtigercrm-commits] [vtiger-commits] r10782 - /vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 25 09:19:31 EDT 2007
Author: richie
Date: Wed Apr 25 07:19:21 2007
New Revision: 10782
Log:
fix for Calendar : Basic search is not working for my own custom view -- non admin. Fixes #3528 --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 Apr 25 07:19:21 2007
@@ -345,14 +345,8 @@
}
elseif($table_name == "vtiger_activity" && $column_name == "status")
{
- $where="$table_name.$column_name like '%".$search_string."%' or vtiger_activity.eventstatus like '%".$search_string."%'";
- }
-
- elseif($table_name == "vtiger_activity" && $column_name == "status")
- {
- $where="$table_name.$column_name like '%".$search_string."%' or vtiger_activity.eventstatus like '%".$search_string."%'";
- }
-
+ $where="($table_name.$column_name like '%".$search_string."%' or vtiger_activity.eventstatus like '%".$search_string."%')";
+ }
else if(in_array($column_name,$column_array))
{
$where = getValuesforColumns($column_name,$search_string);
More information about the vtigercrm-commits
mailing list