From 45fe4e2e3f35e3f815fa317f277409a7d4591738 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Fri, 28 Jul 2023 12:27:48 +0200 Subject: [PATCH] Fix #1339 --- modules/contratti/actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/contratti/actions.php b/modules/contratti/actions.php index 446e8b4b0..5c79ec912 100644 --- a/modules/contratti/actions.php +++ b/modules/contratti/actions.php @@ -141,7 +141,7 @@ switch (post('op')) { // Duplica contratto case 'copy': - $new = $contratto->replicate(); + $new = $contratto->replicate(['idcontratto_prev']); $new->numero = Contratto::getNextNumero($contratto->data_bozza, $contratto->id_segment); $stato = Stato::where('descrizione', '=', 'Bozza')->first();