Skip to content
Snippets Groups Projects
Commit 4ebc7da0 authored by madhu sr's avatar madhu sr
Browse files

Removed the duplicate else if

parent ae540808
No related branches found
No related tags found
1 merge request!1082#Fixes::158512091::madhusr::Default check box field is updating as 'on' and displaying 0 on uncheck
......@@ -129,8 +129,6 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action {
if (isset($defaultValue)) {
if ($defaultValue && $fieldInfo['type'] == 'date') {
$defaultValue = DateTimeField::convertToUserFormat($defaultValue);
} else if ($defaultValue) {
$defaultValue = $fieldInstance->getDisplayValue($defaultValue);
} else if (is_array($defaultValue)) {
foreach ($defaultValue as $key => $value) {
$defaultValue[$key] = $fieldInstance->getDisplayValue($value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment