Commit 95d27e0b authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review
Browse files

Merge "Bug 1630764: fixing for update user via webservices"

parents a1f413a0 ddee80bc
......@@ -561,6 +561,13 @@ class mahara_user_external extends external_api {
$profilefields->{$field} = $user[$field];
}
}
// We need to update the following fields for both the usr and artefact tables
foreach (array('firstname', 'lastname', 'email', 'studentid', 'preferredname') as $field) {
if (isset($user[$field])) {
$profilefields->{$field} = $user[$field];
}
}
update_user($updated_user, $profilefields, $remoteuser);
}
db_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