Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…le into MOODLE_22_STABLE
  • Loading branch information...
commit e7920065ac8a3d23657646b8e93ca9781acd527a 2 parents 222abcd + cae60d1
@stronk7 stronk7 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  grade/edit/tree/category_form.php
View
3  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'));
}
Please sign in to comment.
Something went wrong with that request. Please try again.