From: stronk7 Date: Fri, 13 Feb 2009 10:04:26 +0000 (+0000) Subject: MDL-12846 course defaults - grrr I forgot to re-add the original setDefault() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=853a3d8e53a023dfbdafdf5bcd8ad4f98d460719;p=moodle.git MDL-12846 course defaults - grrr I forgot to re-add the original setDefault() --- diff --git a/course/edit_form.php b/course/edit_form.php index c8f8bc2d59..358164f9f4 100644 --- a/course/edit_form.php +++ b/course/edit_form.php @@ -67,6 +67,7 @@ class course_edit_form extends moodleform { $mform->addElement('hidden', 'category', null); } $mform->setHelpButton('category', array('coursecategory', get_string('category'))); + $mform->setDefault('category', $category->id); $mform->setType('category', PARAM_INT); $fullname = get_string('defaultcoursefullname');