@@ -187,6 +187,7 @@ public function sync(progress_trace $trace) {
187
187
if ($ processed and $ mailadmins ) {
188
188
if ($ log = $ buffer ->get_buffer ()) {
189
189
$ eventdata = new \core \message \message ();
190
+ $ eventdata ->courseid = SITEID ;
190
191
$ eventdata ->modulename = 'moodle ' ;
191
192
$ eventdata ->component = 'enrol_flatfile ' ;
192
193
$ eventdata ->name = 'flatfile_enrolment ' ;
@@ -341,6 +342,7 @@ protected function process_file(progress_trace $trace) {
341
342
342
343
if (!unlink ($ filelocation )) {
343
344
$ eventdata = new \core \message \message ();
345
+ $ eventdata ->courseid = SITEID ;
344
346
$ eventdata ->modulename = 'moodle ' ;
345
347
$ eventdata ->component = 'enrol_flatfile ' ;
346
348
$ eventdata ->name = 'flatfile_enrolment ' ;
@@ -464,6 +466,7 @@ protected function process_records(progress_trace $trace, $action, $roleid, $use
464
466
$ subject = get_string ('enrolmentnew ' , 'enrol ' , format_string ($ course ->shortname , true , array ('context ' => $ context )));
465
467
466
468
$ eventdata = new \core \message \message ();
469
+ $ eventdata ->courseid = $ course ->id ;
467
470
$ eventdata ->modulename = 'moodle ' ;
468
471
$ eventdata ->component = 'enrol_flatfile ' ;
469
472
$ eventdata ->name = 'flatfile_enrolment ' ;
@@ -495,6 +498,7 @@ protected function process_records(progress_trace $trace, $action, $roleid, $use
495
498
$ subject = get_string ('enrolmentnew ' , 'enrol ' , format_string ($ course ->shortname , true , array ('context ' => $ context )));
496
499
497
500
$ eventdata = new \core \message \message ();
501
+ $ eventdata ->courseid = $ course ->id ;
498
502
$ eventdata ->modulename = 'moodle ' ;
499
503
$ eventdata ->component = 'enrol_flatfile ' ;
500
504
$ eventdata ->name = 'flatfile_enrolment ' ;
0 commit comments