MDL-43265 Fix question name text to 255 chars

This commit is contained in:
Jayesh Anandani 2014-02-13 16:29:23 +05:30
parent 974c2cdc03
commit d7730f16f8

View File

@ -175,7 +175,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');