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

browsing to My Moodle page causes "My courses" list to be truncated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 1.9.2
    • General
    • None
    • Debian GNU/Linux Etch, Postgresql 8.1.11, PHP 5.2.0, Apache 2.2.3 (mpm-prefork)
    • PostgreSQL
    • MOODLE_19_STABLE

      If a user with a large number of courses (> 25) browses to their (default, unedited) "/my" page and then goes back to the homepage or a course page, their "My Courses" block is truncated to about 23 courses. This is completely reproducible, but only apparent where a user has a large number of courses.

      What seems to be happening (as far as I can tell), is that the default "/my" page calls

      $courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', '*', false, 21);

      to display the course overview with a limited number of courses. It seems this list then gets cached in $courseids and the subsequent sql query run to generate the "my courses" block includes a line:

      WHERE c.id IN ($courseids);

      where $courseids seems to be much the same list as was displayed on /my.

      Apologies to not have completely worked this out as yet. I'll have a further look when time permits.

            danmarsden Dan Marsden
            gavinmc Gavin Mccullagh (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.