Moodle

MyCourses Limit

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.9.5
  • Fix Version/s: 1.9.6
  • Component/s: Course
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Limit for My Courses (mycoursesperpage) is not being applied and is displaying all courses

Issue Links

Activity

Hide
Steve Upton added a comment -

Can be fixed by editing course/lib.php and making the following alteration within function print_my_moodle():

$courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', array('summary'));

to

$courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', array('summary'), false, $CFG->mycoursesperpage);

Show
Steve Upton added a comment - Can be fixed by editing course/lib.php and making the following alteration within function print_my_moodle(): $courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', array('summary')); to $courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', array('summary'), false, $CFG->mycoursesperpage);
Hide
Eric Merrill added a comment -

This duplicates (and is corrected by) MDL-19089

-Eric

Show
Eric Merrill added a comment - This duplicates (and is corrected by) MDL-19089 -Eric

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: