[Vtigercrm-commits] [vtiger development] #4629: i18n issue for filter with standard values
vtiger development
vtiger-tickets at trac.vtiger.com
Thu Dec 6 06:24:42 EST 2007
#4629: i18n issue for filter with standard values
------------------------+---------------------------------------------------
Reporter: frankpie | Owner: asha
Type: defect | Status: assigned
Priority: blocker | Milestone: 5.0.4
Component: vtigercrm | Version: 5.0.4
Resolution: | Keywords:
------------------------+---------------------------------------------------
Comment (by prasad):
Suggestion to fix this issue:
{{{
File: modules/CustomView/CustomView.php
function getRealValues
Line: ~1008
else
{
//For checkbox type values, we have to convert yes/no as 1/0 to get
the values
$field_uitype = getUItype($this->customviewmodule, $fieldname);
if($field_uitype == 56)
{
if(strtolower($value) == 'yes') $value = 1;
else if(strtolower($value) == 'no') $value = 0;
} else if($field_uitype == 15 || $field_uitype == 16) {
// For Picklist types we need to should try reverse lookup for
matching key.
global $mod_strings;
$flip_mod_strings = array_flip($mod_strings);
if($flip_mod_strings[$value]) $value = $flip_mod_strings[$value];
}
$value = $tablename.".".$fieldname.$this ->getAdvComparator
($comparator,$value,$datatype);
}
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/4629#comment:2>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list