diff --git a/grade/edit/tree/category_form.php b/grade/edit/tree/category_form.php index 4c7861de9af..ceb14a8706f 100644 --- a/grade/edit/tree/category_form.php +++ b/grade/edit/tree/category_form.php @@ -42,7 +42,8 @@ class edit_category_form extends moodleform { // visible elements $mform->addElement('header', 'gradecat', get_string('gradecategory', 'grades')); $mform->addElement('text', 'fullname', get_string('categoryname', 'grades')); - + $mform->addRule('fullname', null, 'required', null, 'client'); + $mform->addElement('select', 'aggregation', get_string('aggregation', 'grades'), $options); $mform->setHelpButton('aggregation', array('aggregation', get_string('aggregation', 'grades'), 'grade'));