mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-23 05:54:03 +01:00
Fix del commit precedente
Utilizzo della funzione prepareToField per effettuare automaticamente la sostituzione degli apici problematici.
This commit is contained in:
parent
b50f42891e
commit
e6e0675e20
@ -146,7 +146,7 @@ if (!empty($options) && $options != 'custom') {
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-12">
|
||||
{[ "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') {
|
||||
<input type="hidden" value="'.$additional['id'].'" name="id['.$num.']">
|
||||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
{[ "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"';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user