From ba71760984e53c270e13e6ff596ef75ff15be759 Mon Sep 17 00:00:00 2001 From: uvigo-atic <40490723+uvigo-atic@users.noreply.github.com> Date: Wed, 18 Nov 2020 11:10:09 +0100 Subject: [PATCH] Added username to userfield form element (#390) --- element/userfield/classes/element.php | 1 + 1 file changed, 1 insertion(+) diff --git a/element/userfield/classes/element.php b/element/userfield/classes/element.php index 0d209a0..63f4bf2 100644 --- a/element/userfield/classes/element.php +++ b/element/userfield/classes/element.php @@ -45,6 +45,7 @@ class element extends \mod_customcert\element { $userfields = array( 'firstname' => get_user_field_name('firstname'), 'lastname' => get_user_field_name('lastname'), + 'username' => get_user_field_name('username'), 'email' => get_user_field_name('email'), 'city' => get_user_field_name('city'), 'country' => get_user_field_name('country'),