Permalink
Browse files

MDL-40088 fixed bug with not visible course section

  • Loading branch information...
marinaglancy committed Jun 7, 2013
1 parent 1430866 commit 86882b6dfe4a9309ac7e4b5e0bedda2f5f56880e
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/edit_form.php
View
@@ -81,7 +81,7 @@ function definition() {
$displaylist = coursecat::make_categories_list('moodle/course:create');
if (!isset($displaylist[$course->category])) {
//always keep current
- $displaylist[$course->category] = coursecat::get($course->category)->get_formatted_name();
+ $displaylist[$course->category] = coursecat::get($course->category, MUST_EXIST, true)->get_formatted_name();
}
$mform->addElement('select', 'category', get_string('coursecategory'), $displaylist);
$mform->addHelpButton('category', 'coursecategory');

0 comments on commit 86882b6

Please sign in to comment.