Skip to content

Commit

Permalink
MDL-43265 Fix question name text to 255 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
jayeshanandani committed Feb 13, 2014
1 parent 4c56e82 commit 83578ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/type/edit_question_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ protected function definition() {
}

$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');

Expand Down

0 comments on commit 83578ab

Please sign in to comment.