MDL-27314 quiz attempts cannot be deleted in separate groups mode.
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
2af51a1dc3
commit
8f64668af2
@@ -360,7 +360,7 @@ abstract class quiz_attempt_report extends quiz_default_report {
|
||||
// Ensure the attempt exists, and belongs to this quiz. If not skip.
|
||||
continue;
|
||||
}
|
||||
if ($allowed && !array_key_exists($attempt->userid, $allowed)) {
|
||||
if ($allowed && !in_array($attempt->userid, $allowed)) {
|
||||
// Ensure the attempt belongs to a student included in the report. If not skip.
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user