Commit 90a3d737 authored by Mathieu's avatar Mathieu
Browse files

FEAT #17703 TIME 1:00 fix entity count

parent 1346bff1
...@@ -58,7 +58,11 @@ class AdministrationController ...@@ -58,7 +58,11 @@ class AdministrationController
} }
if (PrivilegeController::hasPrivilege(['privilegeId' => 'manage_entities', 'userId' => $GLOBALS['id']])) { if (PrivilegeController::hasPrivilege(['privilegeId' => 'manage_entities', 'userId' => $GLOBALS['id']])) {
$entities = EntityModel::get(['select' => [1]]); $entities = EntityModel::get([
'select' => [1],
'where' => ['enabled = ?'],
'data' => ['Y']
]);
$count['entities'] = count($entities); $count['entities'] = count($entities);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment