Skip to content

Commit

Permalink
Tracking: include end date in the search for report exports - refs BT…
Browse files Browse the repository at this point in the history
…#21735 BT#21832
  • Loading branch information
NicoDucou committed Oct 8, 2024
1 parent d676c60 commit d8b42f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main/inc/lib/tracking.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -8661,10 +8661,10 @@ public static function generateReport(string $reportType, array $selectedUserLis
];
$sql = "SELECT user_id, session_id, c_id, login_course_date, logout_course_date, (UNIX_TIMESTAMP(logout_course_date) - UNIX_TIMESTAMP(login_course_date)) AS time
FROM $tblTrackCourseAccess
WHERE login_course_date >= '$startDate'
AND login_course_date <= '$endDate'
AND logout_course_date >= '$startDate'
AND logout_course_date <= '$endDate'
WHERE login_course_date >= '$startDate 00:00:00'
AND login_course_date <= '$endDate 23:59:59'
AND logout_course_date >= '$startDate 00:00:00'
AND logout_course_date <= '$endDate 23:59:59'
AND user_id IN (".implode(',', $selectedUserList).")
ORDER BY user_id, login_course_date";
break;
Expand All @@ -8687,8 +8687,8 @@ public static function generateReport(string $reportType, array $selectedUserLis
INNER JOIN $tblLpItem li ON li.iid = liv.lp_item_id
INNER JOIN $tblLp l ON l.id = li.lp_id
WHERE lv.user_id IN (".implode(',', $selectedUserList).")
AND liv.start_time >= UNIX_TIMESTAMP('$startDate')
AND liv.start_time <= UNIX_TIMESTAMP('$endDate')
AND liv.start_time >= UNIX_TIMESTAMP('$startDate 00:00:00')
AND liv.start_time <= UNIX_TIMESTAMP('$endDate 23:59:59')
AND lv.progress = 100
AND li.item_type = '".TOOL_LP_FINAL_ITEM."'
ORDER BY lv.user_id, liv.start_time";
Expand Down

0 comments on commit d8b42f6

Please sign in to comment.