Browse Source

Exercise draggable fix from 1.10.

jmontoyaa 8 years ago
parent
commit
3c604d8b7a
1 changed files with 6 additions and 1 deletions
  1. 6 1
      main/exercise/exercise.class.php

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

@@ -3979,11 +3979,16 @@ class Exercise
                                 }
                             } elseif ($answerType == DRAGGABLE) {
                                 $user_answer = Display::label(get_lang('Incorrect'), 'danger');
+                            } else {
+                                $user_answer = Display::span(
+                                    get_lang('Incorrect').'  ',
+                                    ['style' => 'color: #FF0000; text-decoration: line-through;']
+                                );
                             }
 
                             if ($show_result) {
                                 if ($showTotalScoreAndUserChoicesInLastAttempt === false) {
-                                    $s_answer_label = '';
+                                    $user_answer = '';
                                 }
                                 echo '<tr>';
                                 echo '<td>' . $s_answer_label . '</td>';