MDL-53476 tool_lp: All forms should at least have one fieldset

This commit is contained in:
Serge Gauthier
2016-04-18 10:58:58 +08:00
committed by Frederic Massart
parent 1f58618863
commit 286a609ff0
+2
View File
@@ -50,6 +50,8 @@ class plan extends persistent {
$mform->setType('userid', PARAM_INT);
$mform->setConstant('userid', $this->_customdata['userid']);
$mform->addElement('header', 'generalhdr', get_string('general'));
$mform->addElement('text', 'name', get_string('planname', 'tool_lp'));
$mform->setType('name', PARAM_TEXT);
$mform->addRule('name', null, 'required', null, 'client');