From 08e9a32e5f6df57f7b3ff9dd7ca44be68f3ba263 Mon Sep 17 00:00:00 2001 From: Jayesh Anandani Date: Thu, 13 Feb 2014 16:29:23 +0530 Subject: [PATCH] MDL-43265 Fix question name text to 255 chars --- question/type/edit_question_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/edit_question_form.php b/question/type/edit_question_form.php index a186eba610d..372319b9387 100644 --- a/question/type/edit_question_form.php +++ b/question/type/edit_question_form.php @@ -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');