mirror of
https://github.com/moodle/moodle.git
synced 2025-05-31 13:09:25 +02:00
MDL-58136 navigation: Ensure we have all course fields
To properly classify courses we need the start/end dates etc.
This commit is contained in:
parent
ddce4f4ba9
commit
c561297d26
@ -2899,7 +2899,7 @@ class global_navigation extends navigation_node {
|
||||
}
|
||||
// Append the chosen sortorder.
|
||||
$sortorder = $sortorder . ',' . $CFG->navsortmycoursessort . ' ASC';
|
||||
$courses = enrol_get_my_courses(null, $sortorder);
|
||||
$courses = enrol_get_my_courses('*', $sortorder);
|
||||
if (count($courses) && $this->show_my_categories()) {
|
||||
// Generate an array containing unique values of all the courses' categories.
|
||||
$categoryids = array();
|
||||
@ -3149,7 +3149,7 @@ class global_navigation_for_ajax extends global_navigation {
|
||||
// If category is shown in MyHome then only show enrolled courses and hide empty subcategories,
|
||||
// else show all courses.
|
||||
if ($nodetype === self::TYPE_MY_CATEGORY) {
|
||||
$courses = enrol_get_my_courses();
|
||||
$courses = enrol_get_my_courses('*');
|
||||
$categoryids = array();
|
||||
|
||||
// Only search for categories if basecategory was found.
|
||||
|
Loading…
x
Reference in New Issue
Block a user