We were still checking for a valid quantity even though the field has
been removed.
$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;