Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
90a3d737
Commit
90a3d737
authored
Sep 01, 2021
by
Mathieu
Browse files
FEAT #17703 TIME 1:00 fix entity count
parent
1346bff1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/app/administration/controllers/AdministrationController.php
View file @
90a3d737
...
...
@@ -58,7 +58,11 @@ class AdministrationController
}
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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment