Add limit distance for emergencies when assigning hub from Open page. #743
This commit is contained in:
parent
bc7a91c01d
commit
f6436cd421
1 changed files with 3 additions and 0 deletions
|
|
@ -2793,7 +2793,10 @@ 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)
|
||||||
|
{
|
||||||
|
$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