Moodle

mymoodle not showing all courses

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Cannot Reproduce
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Component/s: Other
  • Labels:
    None
  • Environment:
    MySQL 5.0.45
    PHP 5.2.5
    Apache webhosting with Linux
  • Affected Branches:
    MOODLE_19_STABLE

Description

Hello,

since upgrading from 1.8.4 to 1.9 I have some trouble getting into hidden courses in hidden categories (as trainer), see: http://tracker.moodle.org/browse/MDL-13900.

Today I got another problem (moodle release = '1.9 + (Build: 20080331)):
I created a new visible category. Inside this category I created a new visible course. To this course I assigned a teacher.
But the course is not listed under mymoodle for this teacher. By using course-id or list of all courses, he can see this new course and access it, but not with mymoodle.

After upgrading from 1.9 final to version shown above, a student of this course can see the course too (with 1.9 final he could not see it). But the one teacher has still no chance to see it in mymoodle.
Adding myself (with teacher account) as teacher to this course shows the course correctly in mymoodle.

How can I solve this problem? (re-adding of that teacher does not solve the problem)

regards, Daniel

Issue Links

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Assigning to Petr... he's working on MyMoodle stuff these days...

Thanks for report Daniel! B-)

Ciao

Show
Eloy Lafuente (stronk7) added a comment - Assigning to Petr... he's working on MyMoodle stuff these days... Thanks for report Daniel! B-) Ciao
Hide
Eloy Lafuente (stronk7) added a comment -

Hi Daniel,

any comment about this? I've been creating a lot of categories and courses in order to test MDL-14478 and, with categories and courses being visible... I haven't had this problem at all.

Any idea? Does it work now in your server? Ciao

Show
Eloy Lafuente (stronk7) added a comment - Hi Daniel, any comment about this? I've been creating a lot of categories and courses in order to test MDL-14478 and, with categories and courses being visible... I haven't had this problem at all. Any idea? Does it work now in your server? Ciao
Hide
Daniel Schimrik added a comment -

Hello Eloy,

I'll upgrade our site this afternoon to current moodle-weekly to check if everything is ok.

regards, Daniel

Show
Daniel Schimrik added a comment - Hello Eloy, I'll upgrade our site this afternoon to current moodle-weekly to check if everything is ok. regards, Daniel
Hide
Daniel Schimrik added a comment -

Hello Eloy,

I am not sure why, but this problem solved itself:
After trying many logins as student and teacher, waiting 1 or 2 days, first the students could see this course.
And some more days later, also the teacher could see his course in the course-list of mymoodle, too.

The only thing I remember I changed was the sort order in mymoodle (back to 1.8-style).

So I think this special problem can be closed so far.

regards, Daniel

Show
Daniel Schimrik added a comment - Hello Eloy, I am not sure why, but this problem solved itself: After trying many logins as student and teacher, waiting 1 or 2 days, first the students could see this course. And some more days later, also the teacher could see his course in the course-list of mymoodle, too. The only thing I remember I changed was the sort order in mymoodle (back to 1.8-style). So I think this special problem can be closed so far. regards, Daniel
Hide
Eloy Lafuente (stronk7) added a comment -

Wow, that's a really strange solution (the "some days" approach).

I hate to resolve bugs without knowing the cause... grrr... but, as I've tested it here and your problems have disappeared ... I'm gong to close this as "Cannot reproduce". Feel free to reopen if necessary.

Thanks, Daniel! Ciao

Show
Eloy Lafuente (stronk7) added a comment - Wow, that's a really strange solution (the "some days" approach). I hate to resolve bugs without knowing the cause... grrr... but, as I've tested it here and your problems have disappeared ... I'm gong to close this as "Cannot reproduce". Feel free to reopen if necessary. Thanks, Daniel! Ciao
Hide
Mary M Rydesky added a comment -

I am having an issue that I think is related. When I view mymoodle, it shows a limited number of my courses, followed by an ellipsis (...), the symbol that means 'more' but there is no way to get more to show. For example - I have a series of courses that are sequential. In mymoodle, I can see the beginning courses, but the ones at the end of the series do not show. This makes it difficult with keeping up with grading, as I use mymoodle to tell me when assignments are awaiting attention.

None of the courses are hidden courses. All of the courses have me in the same role. Time does not alter the items that are listed in mymoodle. But the end result is that mymoodle is not helpful when you have a large number of courses to monitor. I hope you do not close the problem!

Show
Mary M Rydesky added a comment - I am having an issue that I think is related. When I view mymoodle, it shows a limited number of my courses, followed by an ellipsis (...), the symbol that means 'more' but there is no way to get more to show. For example - I have a series of courses that are sequential. In mymoodle, I can see the beginning courses, but the ones at the end of the series do not show. This makes it difficult with keeping up with grading, as I use mymoodle to tell me when assignments are awaiting attention. None of the courses are hidden courses. All of the courses have me in the same role. Time does not alter the items that are listed in mymoodle. But the end result is that mymoodle is not helpful when you have a large number of courses to monitor. I hope you do not close the problem!
Hide
Eloy Lafuente (stronk7) added a comment -

Hi Mary,

if I'm not wrong your problem is an "on purpose" one. Number of courses showing up is limited in code (currently set to 21).

So I'd suggest:

1) Edit my/index.php and around line 812, change:

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

by:

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

that will allow you site to show up to 100 courses in the MyMoodle page.

2) Create one new bug report in the Tracker about allowing that number (100) to be defined somewhere in the Admin interface. I think that's the correct way to allow customizations on each site.

Thanks for your report. Ciao

Show
Eloy Lafuente (stronk7) added a comment - Hi Mary, if I'm not wrong your problem is an "on purpose" one. Number of courses showing up is limited in code (currently set to 21). So I'd suggest: 1) Edit my/index.php and around line 812, change: $courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', '*', false, 21); by: $courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', '*', false, 100); that will allow you site to show up to 100 courses in the MyMoodle page. 2) Create one new bug report in the Tracker about allowing that number (100) to be defined somewhere in the Admin interface. I think that's the correct way to allow customizations on each site. Thanks for your report. Ciao
Hide
Minh-Tam Nguyen added a comment -

the tracker bug Eloy asked for in 2) is MDL-13224, I think. MDL-9834 is also similar.

Show
Minh-Tam Nguyen added a comment - the tracker bug Eloy asked for in 2) is MDL-13224, I think. MDL-9834 is also similar.

People

Dates

  • Created:
    Updated:
    Resolved: