Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-32004 Set the defaultrequestcategory correctly when deleting/crea…

…ting the default category
  • Loading branch information...
commit 950a11e8dfff1c230752189c31173dbfea686b95 1 parent 23778a4
Andrew Nicols andrewnicols authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  course/index.php
3  course/index.php
View
@@ -177,6 +177,7 @@
$tempcat->context = get_context_instance(CONTEXT_COURSECAT, $tempcat->id);
mark_context_dirty('/'.SYSCONTEXTID);
fix_course_sortorder(); // Required to build course_categories.depth and .path.
+ set_config('defaultrequestcategory', $tempcat->id);
}
/// Move a category to a new parent if required
@@ -394,4 +395,4 @@ function print_category_edit($category, $displaylist, $parentslist, $depth=-1, $
print_category_edit($cat, $displaylist, $parentslist, $depth+1, $up, $down);
}
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.