From a0f50892584c9e0015c918d347321c704501722f Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Fri, 17 Feb 2023 16:49:35 +0100 Subject: [PATCH] Fix minore --- modules/ddt/actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ddt/actions.php b/modules/ddt/actions.php index e446e82f8..631403f51 100755 --- a/modules/ddt/actions.php +++ b/modules/ddt/actions.php @@ -531,7 +531,7 @@ switch (filter('op')) { // Duplica ddt case 'copy': $new = $ddt->replicate(); - $new->numero = DDT::getNextNumero($new->data, $dir); + $new->numero = DDT::getNextNumero($new->data, $dir, $new->$id_segment); $new->numero_esterno = DDT::getNextNumeroSecondario($new->data, $dir, $new->id_segment); $stato = Stato::where('descrizione', '=', 'Bozza')->first();