[Vtigercrm-commits] [vtiger-commits] r10677 - /vtigercrm/branches/5.0.3/modules/Settings/UpdateComboValues.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Apr 13 07:12:08 EDT 2007
Author: saraj
Date: Fri Apr 13 05:12:02 2007
New Revision: 10677
Log:
fix for Problem in picklist editing. Fixes #3396 --minnie
Modified:
vtigercrm/branches/5.0.3/modules/Settings/UpdateComboValues.php
Modified: vtigercrm/branches/5.0.3/modules/Settings/UpdateComboValues.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Settings/UpdateComboValues.php (original)
+++ vtigercrm/branches/5.0.3/modules/Settings/UpdateComboValues.php Fri Apr 13 05:12:02 2007
@@ -51,14 +51,17 @@
$adb->query($query);
}
}*/
-/* ticket2369 fixed*/
+/* ticket2369 fixed */
$columnName = $tableName;
foreach ($pickArray as $index => $data) {
$data = trim($data);
if(!empty($data)){
- $data = $adb->formatString("vtiger_$tableName",$columnName,$data);
- $query = "insert into vtiger_$tableName values('',$data,$index,1)";
- $adb->query($query);
+ $data = $adb->formatString("vtiger_$tableName",$columnName,$data);
+ if($uitype == 111)
+ $query = "insert into vtiger_$tableName values('',$data,$index,0)";
+ else
+ $query = "insert into vtiger_$tableName values('',$data,$index,1)";
+ $adb->query($query);
}
}
More information about the vtigercrm-commits
mailing list