MDL-9312 - prevent more than 20 chars being typed in city field, (we only

store 20 chars )
This commit is contained in:
poltawski 2007-12-27 11:36:33 +00:00
parent cbc54f2c67
commit a1df2e982d

View File

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