From 6d640e4fbc1c3dc974bbbbdd23b951b187293fdf Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Mon, 22 Apr 2013 15:49:48 -0400 Subject: [PATCH] Fixed check for quantity in order. We were still checking for a valid quantity even though the field has been removed. --- lib/order.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/order.php b/lib/order.php index f1911c5..9c9e1c9 100644 --- a/lib/order.php +++ b/lib/order.php @@ -432,7 +432,6 @@ $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']; @@ -470,11 +469,6 @@ } else $hub_id = null; - if (! is_numeric($quantity)) { - echo "

Invalid quantity!

\n"; - return false; - } - if ($new && isset($_POST['recurrence'])) $recurrence = $_POST['recurrence']; if (! $recurrence) $recurrence = 0; -- 2.20.1