Bug in rates display fixed in single form layout.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 20 Sep 2009 16:31:32 +0000 (16:31 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 20 Sep 2009 16:31:32 +0000 (16:31 +0000)
taxes/tax_groups.php

index 8e879cd4e97a504a2dd7b4ce95a97604dcaec972..07cda24372a2bc9fe4ae5f496c19d406c18e4643 100644 (file)
@@ -176,9 +176,9 @@ while ($myrow = db_fetch($result))
 
 inactive_control_row($th);
 end_table(1);
-end_form(); // was missing
+
 //-----------------------------------------------------------------------------------
-start_form(); // was missing
+
 start_table($table_style2);
 
 if ($selected_id != -1) 
@@ -200,6 +200,7 @@ if ($selected_id != -1)
                $_POST['rate' . $i]  = percent_format($tax_item["rate"]);
                $i ++;
        }
+       while($i<5) unset($_POST['tax_type_id'.$i++]);
        }
 
        hidden('selected_id', $selected_id);