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

Merge branch 'layouteditor_issue' into 'master'

#1783::Layout Editor: Default Value is cleared If fieldProperty is enabled/disabled (using a switch UI)

See merge request vtiger/vtigercrm!904
parents dda6e40e 2c6e6821
No related branches found
No related tags found
No related merge requests found
......@@ -97,12 +97,13 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action {
$fieldInstance->set('masseditable', $massEditable);
}
$defaultValue = $fieldInstance->get('defaultvalue');
if (!empty($request->get('fieldDefaultValue'))) {
$defaultValue = $fieldInstance->get('defaultvalue');
if(!is_null($request->get('fieldDefaultValue', null))) {
$defaultValue = decode_html($request->get('fieldDefaultValue'));
$fieldInstance->set('defaultvalue', $defaultValue);
}
$response = new Vtiger_Response();
$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