Fix minore
This commit is contained in:
parent
5b4abf66f1
commit
0462c0acc0
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue