Skip to content

Commit

Permalink
Fix issue not showing user details in exercises results export to CSV…
Browse files Browse the repository at this point in the history
… when OnlyBestAttempt option was selected - fixes #1914
  • Loading branch information
baelmyhu authored and ywarnier committed May 24, 2017
1 parent 4d06d1d commit 8172878
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/exercise/exercise_result.class.php
Expand Up @@ -142,7 +142,10 @@ public function getExercisesReporting(
}

if ($this->onlyBestAttempts) {
$results = $bestAttemptPerUser;
// Remove userId indexes to avoid issues in output
foreach ($bestAttemptPerUser as $attempt) {
$results[] = $attempt;
}
}

$filter_by_not_revised = false;
Expand Down

0 comments on commit 8172878

Please sign in to comment.