Explorar o código

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

jmontoyaa %!s(int64=7) %!d(string=hai) anos
pai
achega
158d0cc542
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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) {