Skip to content

Commit

Permalink
MDL-52843 users: Fix the PARAM type of the name fields in signup form
Browse files Browse the repository at this point in the history
If editing the profile, the useredit_shared_definition() function set
the type of all name fields to PARAM_NOTAGS. This patch sets that type
consistently in the user signup form, too.
  • Loading branch information
mudrd8mz committed Jan 20, 2016
1 parent 13c88d9 commit 7802d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion login/signup_form.php
Expand Up @@ -63,7 +63,7 @@ function definition() {
$namefields = useredit_get_required_name_fields();
foreach ($namefields as $field) {
$mform->addElement('text', $field, get_string($field), 'maxlength="100" size="30"');
$mform->setType($field, PARAM_TEXT);
$mform->setType($field, PARAM_NOTAGS);
$stringid = 'missing' . $field;
if (!get_string_manager()->string_exists($stringid, 'moodle')) {
$stringid = 'required';
Expand Down

0 comments on commit 7802d91

Please sign in to comment.