Commit 59bb1dd8 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1630764: fixing for update user via webservices" into 15.04_STABLE

parents bf5693e5 8995297e
......@@ -415,6 +415,13 @@ class mahara_user_external extends external_api {
$profilefields->{$field} = $user[$field];
// The student id and preferredname get saved as an artefact and to usr table
if (isset($user['studentid'])) {
$profilefields->studentid = $user['studentid'];
if (isset($user['preferredname'])) {
$profilefields->preferredname = $user['preferredname'];
update_user($updated_user, $profilefields, $remoteuser);
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