Skip to content

Commit

Permalink
MDL-45961 user profile: track user on reset
Browse files Browse the repository at this point in the history
It seems that redirect (after reset button) was also
missing the userid so the user track was lost.
  • Loading branch information
stronk7 committed Jul 1, 2014
1 parent 9d19781 commit c16de45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
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.
Expand Down

0 comments on commit c16de45

Please sign in to comment.