mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-40055 mod_assign: Replace add_to_log 'submission statement accepted'
This commit is contained in:
parent
89fbc20263
commit
b1e52860ea
3 changed files with 119 additions and 2 deletions
|
@ -4514,7 +4514,14 @@ class assign {
|
|||
$logmessage = get_string('submissionstatementacceptedlog',
|
||||
'mod_assign',
|
||||
fullname($USER));
|
||||
$this->add_to_log('submission statement accepted', $logmessage);
|
||||
$addtolog = $this->add_to_log('submission statement accepted', $logmessage, '', true);
|
||||
$params = array(
|
||||
'context' => $this->context,
|
||||
'objectid' => $submission->id
|
||||
);
|
||||
$event = \mod_assign\event\statement_accepted::create($params);
|
||||
$event->set_legacy_logdata($addtolog);
|
||||
$event->trigger();
|
||||
}
|
||||
$logdata = $this->add_to_log('submit for grading', $this->format_submission_for_log($submission), '', true);
|
||||
$this->notify_graders($submission);
|
||||
|
@ -5149,7 +5156,14 @@ class assign {
|
|||
$logmessage = get_string('submissionstatementacceptedlog',
|
||||
'mod_assign',
|
||||
fullname($USER));
|
||||
$this->add_to_log('submission statement accepted', $logmessage);
|
||||
$addtolog = $this->add_to_log('submission statement accepted', $logmessage, '', true);
|
||||
$params = array(
|
||||
'context' => $this->context,
|
||||
'objectid' => $submission->id
|
||||
);
|
||||
$event = \mod_assign\event\statement_accepted::create($params);
|
||||
$event->set_legacy_logdata($addtolog);
|
||||
$event->trigger();
|
||||
}
|
||||
$this->add_to_log('submit', $this->format_submission_for_log($submission));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue