Merge pull request #4931 from christianbeeznest/ofaj-21097

Reporting: Fix count of users and display table - refs BT#21097
pull/4932/head
christianbeeznest 1 year ago committed by GitHub
commit 6012b507f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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