Permalink
Browse files

MDL-29698 Assignment: Fix broken logentry

  • Loading branch information...
1 parent 52bc12c commit a6c348362a9113f94ea04e697a8d757baa710796 Stephen Bourget committed with stronk7 Oct 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/type/upload/assignment.class.php
@@ -730,7 +730,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 a6c3483

Please sign in to comment.