Commit 48831948 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix warning when adding user to internal institution (#3004) - patch supplied by Dan Poltawski

parent 4a092117
......@@ -210,6 +210,10 @@ function adduser_submit(Pieform $form, $values) {
$authinstance = get_record('auth_instance', 'id', $values['authinstance']);
$values['remoteusername'] = null;
$user->id = create_user($user, array(), $authinstance->institution, $authinstance, $values['remoteusername']);
Supports Markdown
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