Skip to content

Commit

Permalink
MDL-9312 - prevent more than 20 chars being typed in city field, (we …
Browse files Browse the repository at this point in the history
…only

store 20 chars )
  • Loading branch information
poltawski committed Dec 27, 2007
1 parent cbc54f2 commit a1df2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/editlib.php
Expand Up @@ -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');

Expand Down

0 comments on commit a1df2e9

Please sign in to comment.