From: Joe Hunt Date: Thu, 29 Jun 2017 22:55:14 +0000 (+0200) Subject: 0003921: Bug in Tax Groups fixed. X-Git-Tag: v2.4.2~9 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=5bdeff963d434637f3ad2e4c82dd00b9780e7fcc 0003921: Bug in Tax Groups fixed. --- diff --git a/taxes/tax_groups.php b/taxes/tax_groups.php index 540cdb77..889db60e 100644 --- a/taxes/tax_groups.php +++ b/taxes/tax_groups.php @@ -49,8 +49,11 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') while (($id = find_submit('tax_type_id'))!=-1) { - $taxes[] = $id; - $tax_shippings[] = check_value('tax_shipping'.$id); + if (check_value('tax_type_id'.$id) != 0) + { + $taxes[] = $id; + $tax_shippings[] = check_value('tax_shipping'.$id); + } unset($_POST['tax_type_id' . $id]); unset($_POST['tax_shipping' . $id]); }