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

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed May 30 04:59:57 EDT 2007


Author: richie
Date: Wed May 30 02:59:52 2007
New Revision: 11151

Log:
* Fixed the issue in getting related to module conditions

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 30 02:59:52 2007
@@ -973,9 +973,10 @@
 		{
 			$value = "vtiger_users.user_name".$this->getAdvComparator($comparator,$value,$datatype);
 		}
-		elseif($fieldname == "crmid" || $fieldname == "parent_id" || $fieldname == 'parentid')
-		{
-				$value = $this->getSalesRelatedName($comparator,$value,$datatype,$tablename,$fieldname);
+		elseif(($fieldname == "crmid" && $tablename != 'vtiger_crmentity') || $fieldname == "parent_id" || $fieldname == 'parentid')
+		{
+			//For crmentity.crmid the control should not come here. This is only to get the related to modules
+			$value = $this->getSalesRelatedName($comparator,$value,$datatype,$tablename,$fieldname);
 		}
 		else
 		{





More information about the vtigercrm-commits mailing list