From aa466c2cc5257db26bff2eeb70bd46a87f33d664 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Thu, 22 Jul 2021 03:01:15 +0000 Subject: [PATCH] Fix for the jo count for both filtered and non-filtered area. #599 --- src/Service/HubSelector.php | 1 + src/Service/JobOrderHandler/ResqJobOrderHandler.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Service/HubSelector.php b/src/Service/HubSelector.php index 87aea726..b414e59c 100644 --- a/src/Service/HubSelector.php +++ b/src/Service/HubSelector.php @@ -365,6 +365,7 @@ class HubSelector 'db_distance' => $row['dist'], 'distance' => $dist, 'duration' => 0, + 'jo_count' => 0, ]; } else diff --git a/src/Service/JobOrderHandler/ResqJobOrderHandler.php b/src/Service/JobOrderHandler/ResqJobOrderHandler.php index 45842587..be3a4564 100644 --- a/src/Service/JobOrderHandler/ResqJobOrderHandler.php +++ b/src/Service/JobOrderHandler/ResqJobOrderHandler.php @@ -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