mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'wip-MDL-50941-master' of https://github.com/marinaglancy/moodle
This commit is contained in:
commit
ec7a8d3da3
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user