This commit is contained in:
Thomas Zilio 2019-09-06 18:19:21 +02:00
parent c31e849622
commit 1ad4e04e59
4 changed files with 9 additions and 2 deletions

View File

@ -309,6 +309,7 @@ switch (post('op')) {
unset($rs[$i]['id']);
unset($rs[$i]['created_at']);
unset($rs[$i]['updated_at']);
unset($rs[$i]['qta_evasa']);
$rs[$i]['idcontratto'] = $new_idcontratto;
$dbo->insert('co_righe_contratti', $rs);

View File

@ -84,7 +84,6 @@ switch (post('op')) {
}
flash()->info(tr('Preventivo duplicato correttamente!'));
break;
case 'addintervento':

View File

@ -607,7 +607,13 @@ class Validator
// Formattazione testo
elseif ($info['type'] == 'string' || $info['type'] == 'normalizedString') {
$output = htmlentities(html_entity_decode($output));
$output = replace(html_entity_decode($output), [
'&' => '&',
'"' => '"',
"'" => ''',
'<' => '&lt;',
'>' => '&gt;',
]);
}
// Riduzione delle dimensioni

View File

@ -38,6 +38,7 @@ abstract class CachedManager extends Manager
$cache = database()->selectOne('zz_hook_cache', '*', ['hook_id' => $hook->id], ['id' => 'DESC']);
// Interpretazione della cache
if (isset($cache['results']))
$cache['results'] = json_decode($cache['results'], true);
self::$cache = $cache;