Skip to content

Commit

Permalink
Tracking: Don't allow sort by classes - refs BT#20004
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jun 9, 2022
1 parent 0e9f19e commit 6776aa7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/tracking/courseLog.php
Expand Up @@ -370,8 +370,8 @@ function(index) {
}
}

$trackingColumn = isset($_GET['users_tracking_column']) ? $_GET['users_tracking_column'] : null;
$trackingDirection = isset($_GET['users_tracking_direction']) ? $_GET['users_tracking_direction'] : null;
$trackingColumn = $_GET['users_tracking_column'] ?? null;
$trackingDirection = $_GET['users_tracking_direction'] ?? null;
$hideReports = api_get_configuration_value('hide_course_report_graph');
$conditions = [];

Expand Down Expand Up @@ -565,7 +565,7 @@ function(index) {
if ($hideReports === false) {
$conditions['include_invited_users'] = false;
$usersTracking = TrackingCourseLog::get_user_data(
null,
0,
$nbStudents,
$trackingColumn,
$trackingDirection,
Expand Down Expand Up @@ -817,7 +817,7 @@ function(index) {
$headers['student_publication'] = get_lang('Student_publication');
$table->set_header($headerCounter++, get_lang('Messages'), false);
$headers['messages'] = get_lang('Messages');
$table->set_header($headerCounter++, get_lang('Classes'));
$table->set_header($headerCounter++, get_lang('Classes'), false);
$headers['classes'] = get_lang('Classes');

if (empty($sessionId)) {
Expand Down

0 comments on commit 6776aa7

Please sign in to comment.