-
Sub-task
-
Resolution: Duplicate
-
Major
-
None
-
2.0.3, 2.1
-
MOODLE_20_STABLE, MOODLE_21_STABLE
-
MDL-28305_multilang_course_name -
Easy
-
The course shortnames aren't affected by multilang filter in grade overview mode. Not only admins but also students will see this when taking a look into the gradebook.
Reproduction:
(1) Create a course using multilang filter in its name/shortname and assign a user to this course
(2) On the platform, go to the course and choose "Grades"
(3) In the dropdown boxes, choose "Overview report" on the left and select the user on the right side
(4) You can now see the course shortname showing all languages one after another
Fix instructions:
(1) Open /grades/report/overview/lib.php
(2) Go to line 122 and add a "format_string()" to "$course->shortname" .....the line should now look like this: $courselink = '<a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$course->id.'&userid='.$this->user->id.'">'.format_string($course->shortname).'</a>';
(3) Refresh the browser, now it should work!
Attached: screenshot before and after the fix
====
Concerning multilang and course shortnames another improvement at this point: The course shortname is limited to 100 chars. Using multilang filter, this could lead to a problem, esp. when using more than two languages. This has to be changed in /course/edit_form.php and additionally in the database (table mdl_course -> shortname).
- has a non-specific relationship to
-
MDL-28636 "Multilang" didn't works in the Navigation-menu and Combi List
- Closed
- has been marked as being related by
-
MDL-24459 Multilang filter not always applied on course categories
- Closed
- will be (partly) resolved by
-
MDL-29189 Review the uses of course shortname and make sure it is formatted consistently.
- Closed