Browse Source

Show "your choice" column when "expected choice" is on BT#13950

jmontoyaa 7 years ago
parent
commit
158d0cc542
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main/exercise/exercise.class.php

+ 3 - 1
main/exercise/exercise.class.php

@@ -4324,7 +4324,9 @@ class Exercise
                             }
 
                             if ($show_result) {
-                                if ($showTotalScoreAndUserChoicesInLastAttempt === false) {
+                                if ($this->showExpectedChoice() == false &&
+                                    $showTotalScoreAndUserChoicesInLastAttempt === false
+                                ) {
                                     $user_answer = '';
                                 }
                                 switch ($answerType) {