Fix for the jo count for both filtered and non-filtered area. #599
This commit is contained in:
parent
cc4b68bd71
commit
aa466c2cc5
2 changed files with 3 additions and 2 deletions
|
|
@ -365,6 +365,7 @@ class HubSelector
|
|||
'db_distance' => $row['dist'],
|
||||
'distance' => $dist,
|
||||
'duration' => 0,
|
||||
'jo_count' => 0,
|
||||
];
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -2035,8 +2035,8 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
|||
|
||||
// counters
|
||||
$hub['rider_count'] = count($hub['hub']->getAvailableRiders());
|
||||
// $hub['redis_jo_count'] = $hub['jo_count'];
|
||||
$hub['redis_jo_count'] = 0;
|
||||
$hub['redis_jo_count'] = $hub['jo_count'];
|
||||
//$hub['redis_jo_count'] = 0;
|
||||
$hub['jo_count'] = count($hub['hub']->getForAssignmentJobOrders());
|
||||
|
||||
// check for rejection
|
||||
|
|
|
|||
Loading…
Reference in a new issue