Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66391

Ajax call for "Most recently accessed courses" is missing userid parameter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.1
    • Fix Version/s: 3.6.6, 3.7.2
    • Component/s: Course
    • Labels:

      Description

      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]

        Attachments

          Activity

            People

            Assignee:
            segunbabalola Segun Babalola
            Reporter:
            segunbabalola Segun Babalola
            Peer reviewer:
            Víctor Déniz Falcón
            Integrator:
            Andrew Nicols
            Tester:
            Janelle Barcega
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Sep/19

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 25 minutes
                1h 25m