From 840cbe2463c8fb966ee233a85037b632c2fe8c90 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Fri, 8 Oct 2021 12:34:55 +0000 Subject: [PATCH] Fix setting of hub jo count. #626 --- src/Service/HubDistributor.php | 2 ++ src/Service/JobOrderHandler/ResqJobOrderHandler.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Service/HubDistributor.php b/src/Service/HubDistributor.php index 8b296b7f..27a70f15 100644 --- a/src/Service/HubDistributor.php +++ b/src/Service/HubDistributor.php @@ -71,6 +71,8 @@ class HubDistributor // check if hub is in hash. if not, hub has no jobs // but should still be added to results + // TODO: rename the jo_count key so that it won't collide + // later on with the dispatch JO page. if ($hub_jo_count != null) { $arranged_hubs[] = [ diff --git a/src/Service/JobOrderHandler/ResqJobOrderHandler.php b/src/Service/JobOrderHandler/ResqJobOrderHandler.php index a7f23150..ba7125f0 100644 --- a/src/Service/JobOrderHandler/ResqJobOrderHandler.php +++ b/src/Service/JobOrderHandler/ResqJobOrderHandler.php @@ -2121,7 +2121,7 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface $hub['redis_jo_count'] = $hub['jo_count']; //$hub['redis_jo_count'] = 0; // $hub['jo_count'] = count($hub['hub']->getForAssignmentJobOrders()); - //$hub['jo_count'] = $hub['jo_count']; + $hub['jo_count'] = $hub['redis_jo_count']; // check for rejection $hub['flag_rejected'] = false;