Moodle

MyMoodle has been truncated

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.8
  • Fix Version/s: 1.9.5
  • Component/s: Other
  • Labels:
    None
  • Environment:
    Linux/Apache/Php/MySql
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_18_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

MyMoodle has been truncated.

Since we upgraded to Moodle1.8, in MyMoodle page, the big centre part has been truncated for some admin user and the teachers who has long list of courses. For student who only enrolled into few courses in OK.

In the centre part, should show the course name in a big font and list all new posts under the courses name. But for admin users and 'Busy users', the list is truncated and not all new events are listed. Even worse, it lists some course which they never participated.

But for most student and staff who only participated 5 or 7 courses, there is no problem.

On the 'Course' block, the course list is always correct.

Issue Links

Activity

Hide
James Ballard added a comment -

I believe this is caused by the following in my/index.php:

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

I assume upping the 21 limit would fix this.

However for the courses beyond this nothing is shown:

// if more than 20 courses
if (count($courses) > 20) { echo '<br />...'; }

Shoudn't there be an option to display the additional courses on a "next page" or tabs. However I would imagine this may not the best way to manage a My Moodle page or what it is intended for. I guess most users on more than 20 courses would be admins or very busy teachers, and may not need to see all of these anyway - can roles determine who redirects to My Moodle and who doesn't?

Show
James Ballard added a comment - I believe this is caused by the following in my/index.php: $courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', null, false, 21); I assume upping the 21 limit would fix this. However for the courses beyond this nothing is shown: // if more than 20 courses if (count($courses) > 20) { echo '<br />...'; } Shoudn't there be an option to display the additional courses on a "next page" or tabs. However I would imagine this may not the best way to manage a My Moodle page or what it is intended for. I guess most users on more than 20 courses would be admins or very busy teachers, and may not need to see all of these anyway - can roles determine who redirects to My Moodle and who doesn't?
Hide
James Ballard added a comment -

The Course List block seems to take its limit from the My Moodle page settings and will also truncate at 21 if My Moodle is being used.

Show
James Ballard added a comment - The Course List block seems to take its limit from the My Moodle page settings and will also truncate at 21 if My Moodle is being used.
Hide
Eloy Lafuente (stronk7) added a comment -

Hi closing this as duplicate of MDL-13224, feel free to watch/vote there, TIA!

Ciao

Show
Eloy Lafuente (stronk7) added a comment - Hi closing this as duplicate of MDL-13224, feel free to watch/vote there, TIA! Ciao

People

Vote (2)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: