mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-8096 - edit form session fix
This commit is contained in:
parent
29c7e08328
commit
4332512e07
@ -92,6 +92,12 @@
|
||||
|
||||
//TODO: Save the custom profile fields
|
||||
|
||||
// Override old $USER session variable
|
||||
$usernew = (array)get_record('user', 'id', $newuser->id); // reload from db
|
||||
foreach ($usernew as $variable => $value) {
|
||||
$USER->$variable = $value;
|
||||
}
|
||||
|
||||
redirect("$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user