Skip to content

Commit

Permalink
Exercises: ignore if the current attempt is the last to show feedback
Browse files Browse the repository at this point in the history
BT#18025
  • Loading branch information
jmontoyaa committed Feb 16, 2021
1 parent e67f09a commit 61f2272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/inc/lib/exercise.lib.php
Expand Up @@ -4690,7 +4690,7 @@ public static function displayQuestionListByAttempt(
}

// Check if the current attempt is the last.
if (false === $save_user_result && !empty($attempts)) {
/*if (false === $save_user_result && !empty($attempts)) {
$showTotalScoreAndUserChoicesInLastAttempt = false;
$position = 1;
foreach ($attempts as $attempt) {
Expand All @@ -4703,7 +4703,7 @@ public static function displayQuestionListByAttempt(
if ($position == $objExercise->attempts) {
$showTotalScoreAndUserChoicesInLastAttempt = true;
}
}
}*/
}
}

Expand Down

0 comments on commit 61f2272

Please sign in to comment.