Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions main/inc/lib/tracking.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -8709,12 +8709,15 @@ public static function generateReport(string $reportType, array $selectedUserLis
$session = api_get_session_info($row['session_id']);
$course = api_get_course_info_by_id($row['c_id']);

$sessionName = $session['name'] ?? '';
$courseTitle = $course['title'] ?? '';

if ($reportType == 'time_report') {
$rows[] = [
$user['lastname'],
$user['firstname'],
$session['name'],
$course['title'],
$sessionName,
$courseTitle,
api_get_local_time($row['login_course_date']),
api_get_local_time($row['logout_course_date']),
gmdate('H:i:s', $row['time']),
Expand All @@ -8724,8 +8727,8 @@ public static function generateReport(string $reportType, array $selectedUserLis
$rows[] = [
$user['lastname'],
$user['firstname'],
$session['name'],
$course['title'],
$sessionName,
$courseTitle,
$row['lp_name'],
api_get_local_time(date('Y-m-d H:i:s', $row['start_time'])),
$extraFieldValue['value'] ?? '',
Expand Down
3 changes: 3 additions & 0 deletions main/install/configuration.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -1953,6 +1953,9 @@
//Create an extra field for courses with identifier "theoretical_time"
//$_configuration['display_theoretical_time'] = false;

// Enable improved tracking section in main/mySpace/myStudents.php
$_configuration['improve_tracking_in_mystudent_php'] = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have to put the line in comments (with // at the beginning) and the variable should be set to "false" by default.
The settings are always in comment otherwise in a new installation the parameter would be automatically set and we don't want that.
We also set the variable with the value that correspond to the default functioning of the platform. So in this case in a default configuration we do not show the synthesis part the setting should be set to false by default.


// Add teachers column in course list.
// $_configuration['add_teachers_in_course_list'] = false;

Expand Down
Loading
Loading