mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
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:
parent
00c027c7e3
commit
4cc4b85deb
1 changed files with 0 additions and 2 deletions
|
@ -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');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue