Преглед на файлове

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

Julio преди 6 години
родител
ревизия
cf4b8a93e9
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  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]);
+                                            }
                                         }
                                     }
                                 }