Skip to content

Commit

Permalink
Merge branch 'MDL-34985' of git://github.com/merrill-oakland/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Sep 6, 2012
2 parents df5ac8d + 13f87cb commit 34a5205
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grade/edit/tree/category_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,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) {
Expand All @@ -238,6 +238,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'));
}

Expand Down

0 comments on commit 34a5205

Please sign in to comment.