Add setting of distance limit for emergencies. #601
This commit is contained in:
parent
2650ac01c5
commit
d0db056eed
1 changed files with 4 additions and 0 deletions
|
|
@ -1999,7 +1999,11 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
||||||
// check if emergency or not
|
// check if emergency or not
|
||||||
$willing_to_wait = $obj->getWillWait();
|
$willing_to_wait = $obj->getWillWait();
|
||||||
if ($willing_to_wait == WillingToWaitContent::NOT_WILLING_TO_WAIT)
|
if ($willing_to_wait == WillingToWaitContent::NOT_WILLING_TO_WAIT)
|
||||||
|
{
|
||||||
|
// reset distance limit if emergency
|
||||||
|
$hub_criteria->setLimitDistance(500);
|
||||||
$hub_criteria->setEmergency(true);
|
$hub_criteria->setEmergency(true);
|
||||||
|
}
|
||||||
|
|
||||||
// get JO and customer id for logging purposes
|
// get JO and customer id for logging purposes
|
||||||
$jo_id = $obj->getID();
|
$jo_id = $obj->getID();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue