diff --git a/modules/viste/edit.php b/modules/viste/edit.php index 332e48016..abb196fb1 100644 --- a/modules/viste/edit.php +++ b/modules/viste/edit.php @@ -146,7 +146,7 @@ if (!empty($options) && $options != 'custom') {
- {[ "type": "textarea", "label": "'.tr('Query prevista').'", "name": "query['.$key.']", "value": "'.str_replace( '"', '\"', $field['query'] ).'"'; + {[ "type": "textarea", "label": "'.tr('Query prevista').'", "name": "query['.$key.']", "value": "'.prepareToField($field['query']).'"'; if (!$editable) { echo ', "readonly": "1"'; } @@ -384,7 +384,7 @@ if (!empty($options) && $options != 'custom') {
- {[ "type": "textarea", "label": "'.tr('Query').'", "name": "query['.$num.']", "value": "'.$additional['clause'].'"'; + {[ "type": "textarea", "label": "'.tr('Query').'", "name": "query['.$num.']", "value": "'.prepareToField($additional['clause']).'"'; if (!$editable) { echo ', "readonly": "1"'; }