Permalink
Browse files

Merge branch 'MDL-34985_m22' of git://github.com/merrill-oakland/mood…

…le into MOODLE_22_STABLE
  • Loading branch information...
2 parents 222abcd + cae60d1 commit e7920065ac8a3d23657646b8e93ca9781acd527a @stronk7 stronk7 committed Sep 6, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 grade/edit/tree/category_form.php
@@ -218,7 +218,7 @@ function definition() {
$mform->addElement('header', 'headerparent', get_string('parentcategory', 'grades'));
$options = array();
- $default = '';
+ $default = -1;
$categories = grade_category::fetch_all(array('courseid'=>$COURSE->id));
foreach ($categories as $cat) {
@@ -231,6 +231,7 @@ function definition() {
if (count($categories) > 1) {
$mform->addElement('select', 'parentcategory', get_string('parentcategory', 'grades'), $options);
+ $mform->setDefault('parentcategory', $default);
$mform->addElement('static', 'currentparentaggregation', get_string('currentparentaggregation', 'grades'));
}

0 comments on commit e792006

Please sign in to comment.