Exercise draggable fix from 1.10.

pull/2487/head
jmontoyaa 9 years ago
parent 07db02b749
commit 3c604d8b7a
  1. 7
      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>';

Loading…
Cancel
Save