Increase precision in tracking query when session position feature is enabled - refs BT#16036

pull/2990/head
Yannick Warnier 6 years ago
parent d4ca572878
commit b3c548530d
  1. 2
      main/inc/lib/tracking.lib.php

@ -4817,7 +4817,7 @@ class Tracking
$extraInnerJoin = null; $extraInnerJoin = null;
if (SessionManager::orderCourseIsEnabled() && !empty($session_id)) { if (SessionManager::orderCourseIsEnabled() && !empty($session_id)) {
$orderBy = ' ORDER BY s.id, position '; $orderBy = ' ORDER BY s.id, src.position ';
$tableSessionRelCourse = Database::get_main_table(TABLE_MAIN_SESSION_COURSE); $tableSessionRelCourse = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);
$extraInnerJoin = " INNER JOIN $tableSessionRelCourse src $extraInnerJoin = " INNER JOIN $tableSessionRelCourse src
ON (cu.c_id = src.c_id AND src.session_id = $session_id) "; ON (cu.c_id = src.c_id AND src.session_id = $session_id) ";

Loading…
Cancel
Save