[Vtigercrm-commits] [vtiger-commits] r10885 - /vtigercrm/branches/5.0.3/include/utils/SearchUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sat May 12 11:58:47 EDT 2007


Author: saraj
Date: Sat May 12 09:58:42 2007
New Revision: 10885

Log:
Products: Advance Search not working for product image field - fixed. Fixes #3698

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 Sat May 12 09:58:42 2007
@@ -313,7 +313,6 @@
 	       }
 		if($search_field == "accountname")
 			$search_field = "account_id";
-
 		$qry="select vtiger_field.columnname,tablename from vtiger_tab inner join vtiger_field on vtiger_field.tabid=vtiger_tab.tabid where name='".$module."' and (fieldname='".$search_field."' or columnname='".$search_field."')";
 		$result = $adb->query($qry);
 		$noofrows = $adb->num_rows($result);
@@ -355,6 +354,7 @@
 			}
 			else
 			{
+				
 				$where="$table_name.$column_name like '%".$search_string."%'";
 			}
 		}
@@ -400,6 +400,11 @@
 		{
 			$sql.= " and vtiger_field.fieldlabel != 'Add Comment'";
 		}
+		if($tabid == 14)
+		{
+			$sql.= " and vtiger_field.fieldlabel != 'Product Image'";
+		}
+
 		if($tabid == 9 || $tabid==16)
 		{
 			$sql.= " and vtiger_field.fieldname not in('notime','duration_minutes','duration_hours')";
@@ -418,6 +423,11 @@
 		{
 			$sql.= " and vtiger_field.fieldlabel != 'Add Comment'";
 		}
+		if($tabid == 14)
+		{
+			$sql.= " and vtiger_field.fieldlabel != 'Product Image'";
+		}
+
 		if($tabid == 9 || $tabid==16)
 		{
 			$sql.= " and vtiger_field.fieldname not in('notime','duration_minutes','duration_hours')";





More information about the vtigercrm-commits mailing list