[Vtigercrm-commits] [vtiger-commits] r10977 - /vtigercrm/branches/5.0.3/modules/CustomView/CustomView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed May 23 05:28:13 EDT 2007


Author: saraj
Date: Wed May 23 03:28:08 2007
New Revision: 10977

Log:
Issue on Advance Filter of Notes. Fixes #3876

Modified:
    vtigercrm/branches/5.0.3/modules/CustomView/CustomView.php

Modified: vtigercrm/branches/5.0.3/modules/CustomView/CustomView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/CustomView/CustomView.php (original)
+++ vtigercrm/branches/5.0.3/modules/CustomView/CustomView.php Wed May 23 03:28:08 2007
@@ -924,6 +924,11 @@
 	{
 		//we have to add the fieldname/tablename.fieldname and the corresponding value (which we want) we can add here. So that when these LHS field comes then RHS value will be replaced for LHS in the where condition of the query
 		global $adb;
+		
+		//Added for proper check of contact name in advance filter
+		if($tablename == "vtiger_contactdetails" && $fieldname == "lastname")
+			$fieldname = "contactid";
+							
 		$change_table_field = Array(
 
 			"product_id"=>"vtiger_products.productname",





More information about the vtigercrm-commits mailing list