Resolve "Fix JO display when hub is not assigned yet" #859
1 changed files with 4 additions and 0 deletions
|
|
@ -1078,6 +1078,10 @@ class JobOrderController extends BaseController
|
|||
$hub['distance'] = false;
|
||||
}
|
||||
|
||||
// counters
|
||||
$hub['rider_count'] = count($hub['hub']->getAvailableRiders());
|
||||
$hub['jo_count'] = count($hub['hub']->getForAssignmentJobOrders());
|
||||
|
||||
$params['hubs'][] = $hub;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue