Fix issue not showing user details in exercises results export to CSV when OnlyBestAttempt option was selected - fixes #1914

pull/2487/head
baelmyhu 9 years ago committed by Yannick Warnier
parent 4d06d1d999
commit 8172878399
  1. 5
      main/exercise/exercise_result.class.php

@ -142,7 +142,10 @@ class ExerciseResult
}
if ($this->onlyBestAttempts) {
$results = $bestAttemptPerUser;
// Remove userId indexes to avoid issues in output
foreach ($bestAttemptPerUser as $attempt) {
$results[] = $attempt;
}
}
$filter_by_not_revised = false;

Loading…
Cancel
Save