Fixed check for quantity in order.
authorIain Patterson <me@iain.cx>
Mon, 22 Apr 2013 19:49:48 +0000 (15:49 -0400)
committerIain Patterson <me@iain.cx>
Mon, 22 Apr 2013 19:49:48 +0000 (15:49 -0400)
We were still checking for a valid quantity even though the field has
been removed.

lib/order.php

index f1911c5..9c9e1c9 100644 (file)
     $requester_id = $_POST['requester_id'];
     $beneficiary_id = $_POST['beneficiary_id'];
     $hub_id = $_POST['hub_id'];
-    $quantity = $_POST['quantity'];
     $driver_id = $_POST['driver_id'];
     if (! $driver_id) $driver_id = null;
     $state = $_POST['state'];
     }
     else $hub_id = null;
 
-    if (! is_numeric($quantity)) {
-      echo "<p>Invalid quantity!</p>\n";
-      return false;
-    }
-
     if ($new && isset($_POST['recurrence'])) $recurrence = $_POST['recurrence'];
     if (! $recurrence) $recurrence = 0;