1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-22 21:28:08 +01:00

Fix di un problema con gli apici

This commit is contained in:
Thomas Zilio 2017-12-22 11:55:55 +01:00
parent a2c6a6984d
commit 539c5cf0c7

View File

@ -44,13 +44,14 @@ echo '
<div class="row">
<div class="col-xs-12 col-md-6">
{[ "type": "textarea", "label": "'.tr('Query di default').'", "name": "options", "value": "'.str_replace(']}', '] }', $record['options']).'", "readonly": "1", "class": "autosize" ]}
{[ "type": "textarea", "label": "'.tr('Query di default').'", "name": "options", "value": '.json_encode(str_replace(']}', '] }', $record['options'])).', "readonly": "1", "class": "autosize" ]}
</div>
<div class="col-xs-12 col-md-6">
{[ "type": "textarea", "label": "'.tr('Query personalizzata').'", "name": "options2", "value": "'.str_replace(']}', '] }', $record['options2']).'", "class": "autosize", "help": "'.tr('La query in sostituzione a quella di default: custom, menu oppure SQL').'" ]}
{[ "type": "textarea", "label": "'.tr('Query personalizzata').'", "name": "options2", "value": '.json_encode(str_replace(']}', '] }', $record['options2'])).', "class": "autosize", "help": "'.tr('La query in sostituzione a quella di default: custom, menu oppure SQL').'" ]}
</div>
</div>';
</div>';
if ($options != '' && $options != 'menu' && $options != 'custom') {
$total = Modules::getQuery($id_record);
$module_query = $total['query'];