From b9d69bc2e3854c3be9e999b2902f4c5e99794c76 Mon Sep 17 00:00:00 2001 From: iglocska Date: Fri, 18 Dec 2020 12:23:09 +0100 Subject: [PATCH] fix: [statistics] Local org flag fixed to show the correct count --- app/Console/Command/StatisticsShell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Command/StatisticsShell.php b/app/Console/Command/StatisticsShell.php index 8f3d89fd5..8b943825e 100644 --- a/app/Console/Command/StatisticsShell.php +++ b/app/Console/Command/StatisticsShell.php @@ -268,7 +268,7 @@ class StatisticsShell extends AppShell { ['conditions' => ['User.disabled' => 0], 'recursive' => -1] ), 'local_organisations' => $this->Organisation->find('count', - ['conditions' => ['Organisation.local' => 0], 'recursive' => -1] + ['conditions' => ['Organisation.local' => 1], 'recursive' => -1] ), 'external_organisations' => $this->Organisation->find('count', ['conditions' => ['Organisation.local' => 0], 'recursive' => -1]