Commit 450ec8bd authored by Nigel McNie's avatar Nigel McNie
Browse files

Set the first/last/preferred names for the user on the user object when importing.



This way the values get set everywhere they need to be, so e-mails at
the end don't go to "Imported User".
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent f3fe9b55
......@@ -569,6 +569,10 @@ class LeapImportInternal extends LeapImportArtefactPlugin {
self::create_artefact($importer, 'firstname', $firstname);
self::create_artefact($importer, 'lastname', $lastname);
self::create_artefact($importer, 'preferredname', $preferredname);
$importer->get('usrobj')->firstname = $firstname;
$importer->get('usrobj')->lastname = $lastname;
$importer->get('usrobj')->preferredname = $preferredname;
$importer->get('usrobj')->commit();
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment