fix: [statistics] Local org flag fixed to show the correct count

pull/6783/head
iglocska 2020-12-18 12:23:09 +01:00
parent bd303874ca
commit b9d69bc2e3
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -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]