Skip to content
Snippets Groups Projects
Commit 4f821586 authored by Apparao G's avatar Apparao G
Browse files

Revert "#1783::Appu::Layout Editor: Default Value is cleared If fieldProperty is..."

This reverts commit fbc9d58d
parent fbc9d58d
No related branches found
No related tags found
No related merge requests found
......@@ -96,13 +96,10 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action {
if(!empty($massEditable)){
$fieldInstance->set('masseditable', $massEditable);
}
$defaultValue = $fieldInstance->get('defaultvalue');
if(!empty($request->get('fieldDefaultValue'))) {
$defaultValue = decode_html($request->get('fieldDefaultValue'));
$fieldInstance->set('defaultvalue', $defaultValue);
}
$response = new Vtiger_Response();
$defaultValue = decode_html($request->get('fieldDefaultValue'));
$fieldInstance->set('defaultvalue', $defaultValue);
$response = new Vtiger_Response();
try{
$fieldInstance->save();
$fieldInstance = Settings_LayoutEditor_Field_Model::getInstance($fieldId);
......
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