diff --git a/modules/ordini/actions.php b/modules/ordini/actions.php index 669f0abdf..eedc204c4 100755 --- a/modules/ordini/actions.php +++ b/modules/ordini/actions.php @@ -525,6 +525,13 @@ switch (post('op')) { } $copia->save(); + + $dbo->insert('co_riferimenti_righe', [ + 'source_type' => get_class($copia), + 'source_id' => $copia->id, + 'target_type' => get_class($riga), + 'target_id' => $riga->id, + ]); } }