MDL-40054 mod_lesson: removed 'update email essay grade' add_to_log call

The add_to_log call was triggered whenever a grade was sent via the messaging
API. We should not be firing an event here, it should be fired via the
messaging API.
This commit is contained in:
Mark Nelson 2013-12-23 21:31:25 -08:00
parent 00c027c7e3
commit 4cc4b85deb

View file

@ -243,8 +243,6 @@ switch ($mode) {
$essayinfo->sent = 1; $essayinfo->sent = 1;
$attempt->useranswer = serialize($essayinfo); $attempt->useranswer = serialize($essayinfo);
$DB->update_record('lesson_attempts', $attempt); $DB->update_record('lesson_attempts', $attempt);
// Log it
add_to_log($course->id, 'lesson', 'update email essay grade', "essay.php?id=$cm->id", format_string($pages[$attempt->pageid]->title,true).': '.fullname($users[$attempt->userid]), $cm->id);
} }
} }
$lesson->add_message(get_string('emailsuccess', 'lesson'), 'notifysuccess'); $lesson->add_message(get_string('emailsuccess', 'lesson'), 'notifysuccess');