From b09b42608b83c8a96db0b50822fc051b08f51585 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 28 Nov 2017 17:56:36 +0100 Subject: [PATCH] Bugfix creazione fattura da ddt --- modules/fatture/actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fatture/actions.php b/modules/fatture/actions.php index e06420bd0..ecd945139 100644 --- a/modules/fatture/actions.php +++ b/modules/fatture/actions.php @@ -850,7 +850,7 @@ switch (post('op')) { $id_record = $dbo->lastInsertedID(); // Lettura di tutte le righe della tabella in arrivo - for ($i = 0; $i < sizeof($post['qta_da_evadere']); ++$i) { + foreach ($post['qta_da_evadere'] AS $i => $value) { // Processo solo le righe da evadere if ($post['evadere'][$i] == 'on') { $idrigaddt = post('idriga')[$i];