Browse Source

Fix show dragging results option when answer is wrong see BT#13954

Julio 6 years ago
parent
commit
cf4b8a93e9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main/exercise/exercise.class.php

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

@@ -4341,7 +4341,9 @@ class Exercise
                                             ['style' => 'color: #FF0000; text-decoration: line-through;']
                                         );
                                         if ($this->showExpectedChoice()) {
-                                            $user_answer = '';
+                                            if (isset($real_list[$s_user_answer])) {
+                                                $user_answer = Display::span($real_list[$s_user_answer]);
+                                            }
                                         }
                                     }
                                 }