-
Improvement
-
Resolution: Duplicate
-
Trivial
-
None
-
1.6, 1.7, 1.8, 1.9
-
None
-
MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
Add condicional before sending to Admin IMS log. Only send mail, if IMS file is new.
STABLE BRANCH:
line 382:
if ( $fileisnew ) {
email_to_user(get_admin(), get_admin(), "Moodle IMS Enterprise enrolment notification", $msg);
$this->log_line('Notification email sent to administrator.');
}
MAIN BRANCH:
if ( $fileisnew ) {
$eventdata = new object();
$eventdata->modulename = 'moodle';
$eventdata->userfrom = get_admin();
$eventdata->userto = get_admin();
$eventdata->subject = "Moodle IMS Enterprise enrolment notification";
$eventdata->fullmessage = $msg;
$eventdata->fullmessageformat = FORMAT_PLAIN;
$eventdata->fullmessagehtml = '';
$eventdata->smallmessage = '';
events_trigger('message_send', $eventdata);
}
- duplicates
-
MDL-39653 IMS Enterprise CRON job error
- Closed