MDL-45961 user profile: track user on reset

It seems that redirect (after reset button) was also
missing the userid so the user track was lost.
This commit is contained in:
Eloy Lafuente (stronk7)
2014-07-01 19:19:59 +02:00
parent eb13ef2982
commit 024d762da7
+1 -1
View File
@@ -154,7 +154,7 @@ if ($PAGE->user_allowed_editing()) {
if (!$currentpage = my_reset_page($userid, MY_PAGE_PUBLIC, 'user-profile')) {
print_error('reseterror', 'my');
}
redirect(new moodle_url('/user/profile.php'));
redirect(new moodle_url('/user/profile.php', array('id' => $userid)));
}
} else if ($edit !== null) { // Editing state was specified.
$USER->editing = $edit; // Change editing state.