Merge branch 'MDL-43265_26' of https://github.com/jacks92/moodle into MOODLE_26_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2014-02-18 23:56:12 +01:00
+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');