From fd8049dc28209187ef9115b05e997d7982a1f5d6 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 14 Jun 2022 12:45:25 +0200 Subject: [PATCH] Showing counts in order list when filtering for business customers --- application/Order/OrderController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/Order/OrderController.php b/application/Order/OrderController.php index 95613800c..093d0b59c 100644 --- a/application/Order/OrderController.php +++ b/application/Order/OrderController.php @@ -130,6 +130,11 @@ class OrderController extends mfBaseController { } } + // always show counts if filtering for business customers + if(array_key_exists("customer_type", $filter) && $filter['customer_type'] == "business") { + $showLoneliesCount = true; + } + if($showLonelies || $showLoneliesCount) { $userIds = $this->me->getAddressOrParent()->getUserIds(); //var_dump($userIds);exit;