Skip to content
Snippets Groups Projects
Commit cd4c0325 authored by yogeshwar's avatar yogeshwar
Browse files

Fixes:fixed method being called by a null object

parent a1d9983c
No related branches found
No related tags found
No related merge requests found
......@@ -210,10 +210,10 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action {
if ($defaultValue && $fieldInfo['type'] == 'date') {
$defaultValue = DateTimeField::convertToUserFormat($defaultValue);
} else if (!$defaultValue) {
$defaultValue = $fieldInstance->getDisplayValue($defaultValue);
$defaultValue = $fieldInfo->getDisplayValue($defaultValue);
} else if (is_array($defaultValue)) {
foreach ($defaultValue as $key => $value) {
$defaultValue[$key] = $fieldInstance->getDisplayValue($value);
$defaultValue[$key] = $fieldInfo>getDisplayValue($value);
}
$defaultValue = Zend_Json::encode($defaultValue);
}
......
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