Skip to content
Snippets Groups Projects
Commit e8ac0cda authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

also include assignment attempts without solutions, fixes #249

parent ac98f61d
No related branches found
No related tags found
No related merge requests found
......@@ -2196,6 +2196,18 @@ function get_solutions($assignment, $view)
}
}
// get assignment attempts //
foreach ($assignment->assignment_attempts as $attempt) {
$user_id = $attempt->user_id;
$solvers[$user_id] = [
'type' => 'single',
'id' => $user_id,
'user_id' => $user_id
];
}
// get solutions //
$solutions = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment