Merged changes from main CVS (up to 2.2.10)
[fa-stable.git] / includes / ui / allocation_cart.inc
index 8d1e400186f5ce06ae83ec2bcde5170d2b4e4f98..0446600213998e7213bbeac7f3235b4d943d8d3e 100644 (file)
@@ -330,7 +330,7 @@ function check_allocations()
 
                  /*Now check to see that the AllocAmt is no greater than the
                 amount left to be allocated against the transaction under review */
-                if (input_num('amount' . $counter) > get_post('un_allocated' . $counter))
+                if (input_num('amount' . $counter) > input_num('un_allocated' . $counter))
                 {
                        display_error(_("At least one transaction is overallocated."));
                        set_focus('amount'.$counter);