Commit ec3dc757 authored by Quentin Ribac's avatar Quentin Ribac
Browse files

FIX #17703 TIME 0:10 fix entity count in /rest/administration/details

parent 453b6a7c
...@@ -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