-
Bug
-
Resolution: Fixed
-
Minor
-
3.5
-
MOODLE_35_STABLE
-
MOODLE_35_STABLE
-
MDL-62807-master -
Moodle 3.5 (Build 20180517)
Steps to reproduce the problem:
- Goto Site administration > Courses > Manage courses and categories
- Observe that in the list of course categories, each list item has a bullet, where in previous version of Moodle there were no bullets.
In previous versions of Moodle, the bullets were hidden because each <ul> tag had a class of 'ml'. A style rule with a selector of '#course-category-listing ul.ml' would match the <ul> tag, and apply a 'list-style: none;' property to the <ul> tag.
In the current version of Moodle, each <ul> tag now has a class of 'ml-1'. No style rule selector matches that, so the bullets appear.
The PHP code responsible for giving the <ul> tag the class is in moodle/course/classes/management_renderer.php, in several places:
- function category_listing()
- function category_listitem()
- function course_listing()
- function search_listing()
The problem happens regardless of what theme is applied.
There are two options for fixing for the problem.
- Change management_renderer.php to revert back to giving the <ul> tags a class of 'ml' instead of 'ml-1'.
- Change the rule in the stylesheets to adapt to the new class of 'ml-1'.
I do not know the reason why the class for these <ul> tags was changed, so I cannot suggest which option is preferable.