Merge pull request #19674 from mschamp/develop

Close #19673 order categories based on count of elements
This commit is contained in:
Laurent Destailleur 2021-12-30 21:36:47 +01:00 committed by GitHub
commit 5666e90f56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,6 +225,7 @@ if (!empty($conf->categorie->enabled) && !empty($conf->global->CATEGORY_GRAPHSTA
$sql .= " WHERE c.type = 0";
$sql .= " AND c.entity IN (".getEntity('category').")";
$sql .= " GROUP BY c.label";
$sql .= " ORDER BY nb desc";
$total = 0;
$result = $db->query($sql);
if ($result) {