MDL-34765 Course: Fixed missing argument in course reordering
This commit is contained in:
committed by
Sam Hemelryk
parent
92a763eb55
commit
2ee34c85ac
+1
-1
@@ -76,7 +76,7 @@ $sesskeyprovided = !empty($sesskey) && confirm_sesskey($sesskey);
|
||||
// Process any category actions.
|
||||
if ($canmanage && $resort && $sesskeyprovided) {
|
||||
// Resort the category if requested
|
||||
if ($courses = get_courses($category->id, 'c.id,c.fullname,c.sortorder')) {
|
||||
if ($courses = get_courses($category->id, '', 'c.id,c.fullname,c.sortorder')) {
|
||||
collatorlib::asort_objects_by_property($courses, 'fullname', collatorlib::SORT_NATURAL);
|
||||
$i = 1;
|
||||
foreach ($courses as $course) {
|
||||
|
||||
Reference in New Issue
Block a user