From 27bee3699fcccf5de8b5d564e7f0ecd83f1364ae Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Fri, 21 Oct 2016 09:45:16 +0200 Subject: [PATCH] Fix exercise_show see BT#11877 Fixes $showTotalScoreAndUserChoicesInLastAttempt exercise type --- main/inc/lib/exercise.lib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/inc/lib/exercise.lib.php b/main/inc/lib/exercise.lib.php index b5fde0f2e5..149e0b8855 100644 --- a/main/inc/lib/exercise.lib.php +++ b/main/inc/lib/exercise.lib.php @@ -3513,7 +3513,7 @@ HOTSPOT; $show_only_score = false; } - $show_total_score_and_user_choices = false; + $showTotalScoreAndUserChoicesInLastAttempt = true; if ($objExercise->results_disabled == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT) { $show_only_score = true; @@ -3541,9 +3541,9 @@ HOTSPOT; if ($numberAttempts >= $objExercise->attempts) { $show_results = true; $show_only_score = false; - $show_total_score_and_user_choices = false; + $showTotalScoreAndUserChoicesInLastAttempt = true; } else { - $show_total_score_and_user_choices = true; + $showTotalScoreAndUserChoicesInLastAttempt = false; } } } @@ -3595,7 +3595,7 @@ HOTSPOT; $show_results, $objExercise->selectPropagateNeg(), [], - $show_total_score_and_user_choices + $showTotalScoreAndUserChoicesInLastAttempt ); if (empty($result)) {