Commit be094356 authored by Astor Bizard's avatar Astor Bizard
Browse files

Fixed all submissions download.

parent 62b2a16d
......@@ -1130,7 +1130,10 @@ class mod_vpl {
$nostudents [$user->id] = true;
}
$students = array ();
$fields = user_picture::fields( 'u' ) . $extrafields;
$fields = user_picture::fields( 'u' );
if ($extrafields > '') {
$fields .= ',' . $extrafields;
}
$all = get_users_by_capability( $this->get_context(), VPL_SUBMIT_CAPABILITY, $fields,
'u.lastname ASC', '', '', $group );
// TODO the following code is too slow.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment