Skip to content
Snippets Groups Projects
Commit 3b599d4c authored by Ryan Smith's avatar Ryan Smith Committed by GitHub
Browse files

fix(AssignmentGraded): Corrects actor format. (#139 - thanks @Nicosoft)

parents ddc17dbd 3b7bab1a
No related branches found
No related tags found
No related merge requests found
...@@ -58,14 +58,7 @@ class AssignmentGraded extends Event { ...@@ -58,14 +58,7 @@ class AssignmentGraded extends Event {
]); ]);
// Excluded from array merge to make sure that the actor is overwritten e.g. if a different IFI is used. // Excluded from array merge to make sure that the actor is overwritten e.g. if a different IFI is used.
$statement['actor'] = [ $statement['actor'] = $this->read_user($opts, "graded_user");
'objectType' => 'Agent',
'name' => $opts['graded_user_name'],
'account' => [
'homePage' => $opts['graded_user_url'],
'name' => $opts['graded_user_id'],
],
];
if (!is_null($opts['grade_success'])) { if (!is_null($opts['grade_success'])) {
$statement['result']['success'] = $opts['grade_success']; $statement['result']['success'] = $opts['grade_success'];
......
...@@ -51,6 +51,7 @@ class AssignmentGraded extends ModuleViewed { ...@@ -51,6 +51,7 @@ class AssignmentGraded extends ModuleViewed {
'graded_user_id' => $opts['graded_user']->id, 'graded_user_id' => $opts['graded_user']->id,
'graded_user_url' => $opts['graded_user']->url, 'graded_user_url' => $opts['graded_user']->url,
'graded_user_name' => $opts['graded_user']->fullname, 'graded_user_name' => $opts['graded_user']->fullname,
'graded_user_email' => $opts['graded_user']->email,
'grade_score_raw' => $scoreraw, 'grade_score_raw' => $scoreraw,
'grade_score_min' => $scoremin, 'grade_score_min' => $scoremin,
'grade_score_max' => $scoremax, 'grade_score_max' => $scoremax,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment