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

Merge branch 'master' into security

parents 8c5de613 9984602c
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
{continue} {continue}
{/if} {/if}
{if $FIELD_MODEL->isEditable() eq true} {if $FIELD_MODEL->isEditable() eq true}
{if $FIELD_MODEL->get('uitype') eq "19"} {if $FIELD_MODEL->get('uitype') eq "19" || $FIELD_MODEL->get('label') eq 'Signature'}
{if $COUNTER eq '1'} {if $COUNTER eq '1'}
<td></td><td></td></tr><tr> <td></td><td></td></tr><tr>
{assign var=COUNTER value=0} {assign var=COUNTER value=0}
...@@ -80,4 +80,4 @@ ...@@ -80,4 +80,4 @@
{/if} {/if}
{/if} {/if}
{/foreach} {/foreach}
</div> </div>
\ No newline at end of file
...@@ -97,9 +97,13 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action { ...@@ -97,9 +97,13 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action {
$fieldInstance->set('masseditable', $massEditable); $fieldInstance->set('masseditable', $massEditable);
} }
$defaultValue = decode_html($request->get('fieldDefaultValue')); $defaultValue = $fieldInstance->get('defaultvalue');
$fieldInstance->set('defaultvalue', $defaultValue); if(!is_null($request->get('fieldDefaultValue', null))) {
$response = new Vtiger_Response(); $defaultValue = decode_html($request->get('fieldDefaultValue'));
$fieldInstance->set('defaultvalue', $defaultValue);
}
$response = new Vtiger_Response();
try{ try{
$fieldInstance->save(); $fieldInstance->save();
$fieldInstance = Settings_LayoutEditor_Field_Model::getInstance($fieldId); $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