Resolve "Fix for hub filter for emergency JO from Re-assign Hub" #1668

Merged
korina.cordero merged 2 commits from 743-fix-for-hub-filter-for-emergency-jo-from-re-assign-hub into master 2023-03-31 10:29:58 +00:00
Showing only changes of commit 2535498db9 - Show all commits

View file

@ -2464,6 +2464,7 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
if ($willing_to_wait == WillingToWaitContent::NOT_WILLING_TO_WAIT)
{
// reset distance limit if emergency
//TODO: move to .env the emergency distance limit
$hub_criteria->setLimitDistance(500);
$hub_criteria->setEmergency(true);
}
@ -2794,6 +2795,7 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
$willing_to_wait = $obj->getWillWait();
if ($willing_to_wait == WillingToWaitContent::NOT_WILLING_TO_WAIT)
{
//TODO: move to .env the emergency distance limit
$hub_criteria->setLimitDistance(500);
$hub_criteria->setEmergency(true);
}