From 0462c0acc04929a464e540f20880f9fd5d7b21ae Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Mon, 15 Jan 2024 15:51:24 +0100 Subject: [PATCH] Fix minore --- modules/impianti/actions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/impianti/actions.php b/modules/impianti/actions.php index ec8844dab..c6b4456df 100644 --- a/modules/impianti/actions.php +++ b/modules/impianti/actions.php @@ -163,6 +163,7 @@ switch ($op) { // Duplica impianto case 'copy': + $database->beginTransaction(); $dbo->query('CREATE TEMPORARY TABLE tmp SELECT * FROM my_impianti WHERE id= '.prepare($id_record)); $dbo->query('ALTER TABLE tmp DROP id'); $dbo->query('INSERT INTO my_impianti SELECT NULL,tmp. * FROM tmp');