Permalink
Browse files

MDL-36679: Assignment revert to draft should user the selected user i…

…d, not the logged in user id.
  • Loading branch information...
1 parent 1ffe4ae commit eb189e08f2e0f3bafa083754dabcddb1ff12b64a Damyon Wiese committed Nov 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/assign/locallib.php
View
@@ -4097,9 +4097,9 @@ private function process_revert_to_draft($userid = 0) {
}
if ($this->get_instance()->teamsubmission) {
- $submission = $this->get_group_submission($USER->id, 0, false);
+ $submission = $this->get_group_submission($userid, 0, false);
} else {
- $submission = $this->get_user_submission($USER->id, false);
+ $submission = $this->get_user_submission($userid, false);
}
if (!$submission) {

0 comments on commit eb189e0

Please sign in to comment.