Reporting: Fix count of users and display table - refs BT#21097

pull/4931/head
christian 1 year ago
parent 9140e272c8
commit 0879a39b37
  1. 13
      public/main/inc/lib/statistics.lib.php
  2. 2
      public/main/my_space/tc_report.php

@ -1386,7 +1386,18 @@ class Statistics
public static function getBossTable($bossId)
{
$students = UserManager::getUsersFollowedByStudentBoss($bossId);
$students = UserManager::getUsersFollowedByStudentBoss(
$bossId,
0,
false,
false,
false,
null,
null,
null,
null,
1
);
if (!empty($students)) {
$table = new HTML_Table(['class' => 'table table-responsive', 'id' => 'table_'.$bossId]);

@ -143,7 +143,7 @@ if ('add_user' !== $action) {
$userRepo = Container::getUserRepository();
$bossList = $userRepo->findByRole('ROLE_STUDENT_BOSS', '', api_get_current_access_url_id());
//$bossList = UserManager::get_user_list($conditions, ['firstname']);
$tableContent .= '<div class="container-fluid"><div class="row flex-row flex-nowrap">';
$tableContent .= '<div class="container-fluid"><div class="row flex-row flex-nowrap overflow-y-auto">';
foreach ($bossList as $boss) {
if (!empty($languageFilter) && $languageFilter !== $boss->getLocale()) {
continue;

Loading…
Cancel
Save