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

also include assignment attempts without solutions, fixes #249

parent 767223f9
No related branches found
No related tags found
No related merge requests found
...@@ -2141,6 +2141,18 @@ function get_solutions($assignment, $view) ...@@ -2141,6 +2141,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 // // get solutions //
$solutions = []; $solutions = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment