MDL-43265 Fix question name text to 255 chars

This commit is contained in:
Jayesh Anandani
2014-02-13 17:06:10 +05:30
parent 27ebbdd703
commit 08e9a32e5f
+1 -1
View File
@@ -181,7 +181,7 @@ abstract class question_edit_form extends question_wizard_form {
}
$mform->addElement('text', 'name', get_string('questionname', 'question'),
array('size' => 50));
array('size' => 50, 'maxlength' => 255)));
$mform->setType('name', PARAM_TEXT);
$mform->addRule('name', null, 'required', null, 'client');