Resolve "Set distance limit in admin panel" #1530

Merged
korina.cordero merged 3 commits from 601-set-distance-limit-in-admin-panel into master-fix 2021-07-26 09:49:40 +00:00
Showing only changes of commit d0db056eed - Show all commits

View file

@ -1999,7 +1999,11 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
// check if emergency or not
$willing_to_wait = $obj->getWillWait();
if ($willing_to_wait == WillingToWaitContent::NOT_WILLING_TO_WAIT)
{
// reset distance limit if emergency
$hub_criteria->setLimitDistance(500);
$hub_criteria->setEmergency(true);
}
// get JO and customer id for logging purposes
$jo_id = $obj->getID();