From c6da8e890a78a7e8e8aa81be1f4ca9aa8b92594c Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Fri, 1 Mar 2024 15:47:24 +0100 Subject: [PATCH] Fix minore --- modules/fatture/actions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/fatture/actions.php b/modules/fatture/actions.php index 2a035040e..78db36100 100755 --- a/modules/fatture/actions.php +++ b/modules/fatture/actions.php @@ -504,7 +504,6 @@ switch ($op) { $qta = post('qta'); - $articolo->name = post('descrizione'); $articolo->note = post('note'); $articolo->um = post('um') ?: null; @@ -528,9 +527,10 @@ switch ($op) { } catch (UnexpectedValueException $e) { flash()->error(tr('Alcuni serial number sono giĆ  stati utilizzati!')); } - $articolo->save(); + $database->query('UPDATE `co_righe_documenti` SET `descrizione` = \''.post('descrizione').'\' WHERE `iddocumento` = '.$fattura->id.' AND `idarticolo` = '.$articolo->idarticolo.';'); + if (post('idriga') != null) { flash()->info(tr('Articolo modificato!')); } else {