mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-41594 Bug fix for orphaned invisible categories
thanks to L.Sanocki
This commit is contained in:
parent
f09119e1e5
commit
b73d8a35c2
@ -596,6 +596,9 @@ class coursecat implements renderable, cacheable_object, IteratorAggregate {
|
||||
} else {
|
||||
// parent not found. This is data consistency error but next fix_course_sortorder() should fix it
|
||||
$all[0][] = $record->id;
|
||||
if (!$record->visible) {
|
||||
$all['0i'][] = $record->id;
|
||||
}
|
||||
}
|
||||
$count++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user