[Vtigercrm-commits] [vtiger-commits] r10936 - /vtigercrm/branches/5.0.3/modules/CustomView/CustomView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 15 11:55:59 EDT 2007
Author: richie
Date: Tue May 15 09:55:54 2007
New Revision: 10936
Log:
* Fixed the case sensite comparision issue for checkbox fields
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 Tue May 15 09:55:54 2007
@@ -972,8 +972,8 @@
//For checkbox type values, we have to convert yes/no as 1/0 to get the values
if(getUItype($this->customviewmodule, $fieldname) == 56)
{
- if($value == 'yes') $value = 1;
- elseif($value == 'no') $value = 0;
+ if(strtolower($value) == 'yes') $value = 1;
+ elseif(strtolower($value) == 'no') $value = 0;
}
$value = $tablename.".".$fieldname.$this->getAdvComparator($comparator,$value,$datatype);
More information about the vtigercrm-commits
mailing list