From 960c5cce5ce4bd6613015a661b8fa5d8fb0a2cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Tue, 19 Jan 2016 17:00:59 +0100 Subject: [PATCH] MDL-52843 users: Fix the PARAM type of the name fields in signup form 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. --- login/signup_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login/signup_form.php b/login/signup_form.php index 2d43f70fd54..a463e9d77ea 100644 --- a/login/signup_form.php +++ b/login/signup_form.php @@ -63,7 +63,7 @@ class login_signup_form extends moodleform { $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';