From 8b0d22fc0301c4379a7b3aec01f2a717767eaa73 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Mon, 7 Feb 2022 13:04:17 +0100 Subject: [PATCH] Fix modifica codice fornitore --- plugins/listino_fornitori/actions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/listino_fornitori/actions.php b/plugins/listino_fornitori/actions.php index 256974ca4..e0aa0dc96 100644 --- a/plugins/listino_fornitori/actions.php +++ b/plugins/listino_fornitori/actions.php @@ -38,8 +38,7 @@ switch (filter('op')) { $fornitore = DettaglioFornitore::build($anagrafica, $articolo); } else { - $fornitore = $precedente->replicate(); - $precedente->delete(); + $fornitore = $precedente; } $fornitore->codice_fornitore = post('codice_fornitore');