diff --git a/plugins/sedi/actions.php b/plugins/sedi/actions.php index 30effd919..f556e9dd5 100755 --- a/plugins/sedi/actions.php +++ b/plugins/sedi/actions.php @@ -65,8 +65,9 @@ switch ($operazione) { } else { flash()->warning(tr('Errore durante aggiunta della sede')); } - - $id_record->save(); + + $sede = Sede::find($id_record); + $sede->save(); break; diff --git a/update/2_4_52.sql b/update/2_4_52.sql index 4a2ca976f..6c3154648 100644 --- a/update/2_4_52.sql +++ b/update/2_4_52.sql @@ -90,4 +90,4 @@ INSERT INTO `zz_widgets` (`id`, `name`, `type`, `id_module`, `location`, `class` (NULL, 'Stampa giacenza', 'print', (SELECT `id` FROM `zz_modules` WHERE name='Automezzi'), 'controller_top', 'col-md-4', '', '#45a9f1', 'fa fa-truck', '', 'if( confirm(\'Stampare la giacenza attuale sugli automezzi?\') ){ window.open(\'pdfgen.php?id_print=53&search_targa=\'+$(\'#th_Targa input\').val()+\'&search_nome=\'+$(\'#th_Nome input\').val()); }', 'javascript', '', 'Stampa giacenza', '1', '1', NULL); -- Aggiunta flag rappresentante fiscale per sede -ALTER TABLE `an_sedi` ADD `is_rappresentante_fiscale` BOOLEAN NOT NULL DEFAULT FALSE; \ No newline at end of file +ALTER TABLE `an_sedi` ADD `is_rappresentante_fiscale` BOOLEAN NULL DEFAULT FALSE; \ No newline at end of file