Skip to content

Commit

Permalink
fix: Fixes actor in User Enrolments to close #224. (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicosoft authored and ryasmi committed Aug 14, 2018
1 parent bc00543 commit 62a5479
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/transformer/events/core/user_enrolment_created.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

function user_enrolment_created(array $config, \stdClass $event) {
$repo = $config['repo'];
$user = $repo->read_record_by_id('user', $event->userid);
$user = $repo->read_record_by_id('user', $event->relateduserid);
$course = $repo->read_record_by_id('course', $event->courseid);
$lang = utils\get_course_lang($course);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": 1,
"userid": 1,
"relateduserid": 1,
"courseid": 1,
"timecreated": 1433946701,
"objecttable": "user",
Expand Down

0 comments on commit 62a5479

Please sign in to comment.