missing unset of post variable (DayNumber)
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 23 Sep 2009 13:07:03 +0000 (13:07 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 23 Sep 2009 13:07:03 +0000 (13:07 +0000)
CHANGELOG.txt
admin/payment_terms.php

index 487b05de35eaba014230707d55027a1d50409c13..46e4c3922074732a92688ea2f3c9ec29ff1ad000 100644 (file)
@@ -23,6 +23,8 @@ $ -> Affected files
 # Cleaning from javascript errors.
 $ /access/login.php
   /admin/fiscalyears.php
+# missing unset of post variable (DayNumber).
+$ /admin/payment_terms.php
   
 22-Sep-2009 Joe Hunt
 ! Changed copyright notice in installer files to credit the original copyrighter. GPLv3.
index 7bc52c7c63da4a3cc37de9d659ffd29887eb6787..1dd5dc67d9b533af4a79efd18634046d4ebe76ec 100644 (file)
@@ -206,6 +206,7 @@ if ($selected_id != -1)
                $_POST['terms']  = $myrow["terms"];
                $days_before_due  = $myrow["days_before_due"];
                $day_in_following_month  = $myrow["day_in_following_month"];
+               unset($_POST['DayNumber']);
        }
        hidden('selected_id', $selected_id);
 }