mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
MDL-9312 - prevent more than 20 chars being typed in city field, (we only
store 20 chars )
This commit is contained in:
parent
cbc54f2c67
commit
a1df2e982d
@ -168,7 +168,7 @@ function useredit_shared_definition(&$mform) {
|
||||
$mform->setDefault('screenreader', 0);
|
||||
$mform->setAdvanced('screenreader');
|
||||
|
||||
$mform->addElement('text', 'city', get_string('city'), 'maxlength="100" size="25"');
|
||||
$mform->addElement('text', 'city', get_string('city'), 'maxlength="20" size="21"');
|
||||
$mform->setType('city', PARAM_MULTILANG);
|
||||
$mform->addRule('city', $strrequired, 'required', null, 'client');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user