Details
-
Type:
Improvement
-
Status:
Reopened
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.8.4, 1.9.4
-
Fix Version/s: STABLE backlog
-
Component/s: General
-
Labels:None
-
Affected Branches:MOODLE_18_STABLE, MOODLE_19_STABLE
Description
Hi
In MyMoodle home page, only 21 courses can appear.
But the number of courses that one student can choose is very higher.
So can we
- change this number to 50, for example, or better
- set it to the coursesperpage parameter (administration -> Front Page -> Front Page Settings), or best
- create a new parameter, accessible from administration -> Appearence -> My Moodle
Waiting for this change, i modify $HOME/moodle/my/index.php
$courses = get_my_courses($USER->id, null, '*', false, 51);
if (count($courses) > 50) {
Thanks
Laurent
Attachments
Issue Links
| This issue will be resolved by: | ||||
| MDL-20472 | get_my_courses does not properly obey the limit parameter |
|
|
|
| This issue is duplicated by: | ||||
| MDL-9834 | MyMoodle has been truncated |
|
|
|
| MDL-12278 | Make hard-coded numbers configurable variables |
|
|
|
| This issue has been marked as being related by: | ||||
| MDL-19089 | Ellipses incorrectly displayed for My Moodle page |
|
|
|
My +1 for this both in 19_STABLE and HEAD. I think that setting is the correct way (defaulting to 21 to respect current behaviour). Perhaps, also, it would be a good idea to review other usages of get_my_courses() to see if they need be changed too.
Assigning to Dongsheng, one +1 from MD is necessary. Ciao