-
Bug
-
Resolution: Fixed
-
Minor
-
3.7.1
-
MOODLE_37_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MDL-66391-master -
The JS function getLastAccessedCourses() in course/amd/repository.js (and its minified equivalent) are missing the userid parameter when ajax requests are sent to the get_recent_courses() function in course/externallib.php. We noticed this while investigating the cause of users sometimes being intermittently (and seemingly randomly) getting logged out of Moodle.
You should be able to test this fix by looking at whether the call to this web-service was successful or not
[https://[your.moodle.url]/lib/ajax/service.php?sesskey=[INSERT-YOUR-SESSKEY-HERE]&info=core_course_get_recent_courses|https://your.moodle.org/lib/ajax/service.php?sesskey=XYZABC123&info=core_course_get_enrolled_courses_by_timeline_classification]