Permalink
Browse files

MDL-34131: Plagiarism API - use correct vars in event trigger

  • Loading branch information...
1 parent 40a37bf commit ddd84e9226ac21efdac9cbd1a9ac3b08b8440492 @danmarsden danmarsden committed with danpoltawski Aug 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assign/submission/onlinetext/locallib.php
@@ -137,7 +137,7 @@ public function save(stdClass $submission, stdClass $data) {
$eventdata->itemid = $submission->id;
$eventdata->courseid = $this->assignment->get_course()->id;
$eventdata->userid = $USER->id;
- $eventdata->content = trim(format_text($onlinetextsubmission->onlinetext, $onlinetextsubmission->onlineformat, array('context'=>$this->assignment->get_context())));
+ $eventdata->content = trim(format_text($data->onlinetext, $data->onlinetext_editor['format'], array('context'=>$this->assignment->get_context())));
if ($files) {
$eventdata->pathnamehashes = array_keys($files);
}

0 comments on commit ddd84e9

Please sign in to comment.