MDL-12141, category names should be mandatory

This commit is contained in:
toyomoyo
2007-11-13 02:52:30 +00:00
parent 69a4aef1e1
commit 815673e92f
+2 -1
View File
@@ -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'));