Commit cdb633b6 authored by Penny Leach's avatar Penny Leach
Browse files

in upload users, must set $user->id to new id before passing it to handle_event (createuser)

parent 377107e9
......@@ -305,6 +305,7 @@ function uploadcsv_submit(Pieform $form, $values) {
}
$user->passwordchange = 1;
$id = insert_record('usr', $user, 'id', true);
$user->id = $id;
foreach ($FORMAT as $field) {
if ($field == 'username' || $field == 'password') {
......
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