Merge branch 'wip-MDL-50941-master' of https://github.com/marinaglancy/moodle

This commit is contained in:
Dan Poltawski 2016-03-26 11:26:31 +08:00
commit ec7a8d3da3
2 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ class feedback_item_textfield extends feedback_item_base {
$itemsize = 30;
}
$itemlength = isset($size_and_length[1]) ? $size_and_length[1] : 5;
$itemlength = isset($size_and_length[1]) ? $size_and_length[1] : 255;
$item->itemsize = $itemsize;
$item->itemmaxlength = $itemlength;

View File

@ -44,10 +44,10 @@ class feedback_textfield_form extends feedback_item_form {
get_string('textfield_size', 'feedback').' ',
array_slice(range(0, 255), 5, 255, true));
$mform->addElement('select',
$mform->addElement('text',
'itemmaxlength',
get_string('textfield_maxlength', 'feedback').' ',
array_slice(range(0, 255), 5, 255, true));
get_string('textfield_maxlength', 'feedback'));
$mform->setType('itemmaxlength', PARAM_INT);
parent::definition();
$this->set_data($item);