From e6e0675e20018a38f904ebd3480f0e6da547cb0a Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Thu, 15 Mar 2018 17:05:38 +0100 Subject: [PATCH] Fix del commit precedente Utilizzo della funzione prepareToField per effettuare automaticamente la sostituzione degli apici problematici. --- modules/viste/edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"'; }