Miglioramento salvataggio stato dopo la firma dell'intervento

This commit is contained in:
MatteoPistorello 2021-01-21 13:08:31 +01:00
parent 3acd414205
commit 94bcef9bad
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ switch (post('op')) {
if (!$img->save(base_dir().'/files/interventi/'.$firma_file)) {
flash()->error(tr('Impossibile creare il file!'));
} elseif ($dbo->query('UPDATE in_interventi SET firma_file='.prepare($firma_file).', firma_data=NOW(), firma_nome = '.prepare($firma_nome).', idstatointervento = (SELECT idstatointervento FROM in_statiintervento WHERE codice = \'OK\') WHERE id='.prepare($id_record))) {
} elseif ($dbo->query('UPDATE in_interventi SET firma_file='.prepare($firma_file).', firma_data=NOW(), firma_nome = '.prepare($firma_nome).' WHERE id='.prepare($id_record))) {
flash()->info(tr('Firma salvata correttamente!'));
flash()->info(tr('Attività completata!'));