[Vtigercrm-commits] [vtiger-commits] r10154 - /vtigercrm/branches/5.0.3/modules/CustomView/CustomView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Feb 8 05:20:49 EST 2007
Author: saraj
Date: Thu Feb 8 03:20:37 2007
New Revision: 10154
Log:
Problem in customview groupname filter. Fixes #2808
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 Thu Feb 8 03:20:37 2007
@@ -895,10 +895,17 @@
*/
function getRealValues($tablename,$fieldname,$comparator,$value,$datatype)
{
- if($fieldname == "smownerid" || $fieldname == "inventorymanager")
- {
- $value = $tablename.".".$fieldname.$this->getAdvComparator($comparator,getUserId_Ol($value),$datatype);
- }else if($fieldname == "parentid")
+ if($fieldname == "smownerid")
+ {
+
+ $temp_value = "( vtiger_users.user_name".$this->getAdvComparator($comparator,$value,$datatype);
+ $temp_value.= " OR vtiger_groups.groupname".$this->getAdvComparator($comparator,$value,$datatype);
+ $value=$temp_value.")";
+ }elseif( $fieldname == "inventorymanager")
+ {
+
+ $value = $tablename.".".$fieldname.$this->getAdvComparator($comparator,getUserId_Ol($value),$datatype);
+ }else if($fieldname == "parentid")
{
$value = $tablename.".".$fieldname.$this->getAdvComparator($comparator,$this->getAccountId($value),$datatype);
}else if($fieldname == "accountid")
More information about the vtigercrm-commits
mailing list