Permalink
Browse files

MDL-29698 Assignment: Fix broken logentry

  • Loading branch information...
Stephen Bourget authored and stronk7 committed Oct 7, 2011
1 parent 3065bfa commit b629bbec9ff77d22e770589623dc809d8673de15
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/type/upload/assignment.class.php
@@ -731,7 +731,7 @@ function unfinalize($forcemode=null) {
$updated->data2 = '';
$DB->update_record('assignment_submissions', $updated);
//TODO: add unfinalize action to log
- add_to_log($this->course->id, 'assignment', 'view submission', 'submissions.php?id='.$this->assignment->id, $this->assignment->id, $this->cm->id);
+ add_to_log($this->course->id, 'assignment', 'view submission', 'submissions.php?id='.$this->cm->id.'&userid='.$userid.'&mode='.$mode.'&offset='.$offset, $this->assignment->id, $this->cm->id);
$submission = $this->get_submission($userid);
$this->update_grade($submission);
}

0 comments on commit b629bbe

Please sign in to comment.