Fix minore

This commit is contained in:
Pek5892 2024-01-15 15:51:24 +01:00
parent 5b4abf66f1
commit 0462c0acc0
1 changed files with 1 additions and 0 deletions

View File

@ -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');