Show only status for the selected student answer BT#16256

pull/3023/head
Julio Montoya 6 years ago
parent 6240ad4cf6
commit c58a1def2f
  1. 5
      main/inc/lib/exercise_show_functions.lib.php

@ -390,7 +390,6 @@ class ExerciseShowFunctions
echo '<td width="5%">'; echo '<td width="5%">';
echo Display::return_icon($icon, null, null, ICON_SIZE_TINY); echo Display::return_icon($icon, null, null, ICON_SIZE_TINY);
echo '</td>'; echo '</td>';
if ($exercise->showExpectedChoiceColumn()) { if ($exercise->showExpectedChoiceColumn()) {
if ($hide_expected_answer === false) { if ($hide_expected_answer === false) {
echo '<td width="5%">'; echo '<td width="5%">';
@ -413,7 +412,11 @@ class ExerciseShowFunctions
$status = Display::label(get_lang('Correct'), 'success'); $status = Display::label(get_lang('Correct'), 'success');
} }
echo '<td width="20%">'; echo '<td width="20%">';
// Show only status for the selected student answer BT#16256
if ($studentChoice) {
echo $status; echo $status;
}
echo '</td>'; echo '</td>';
} }

Loading…
Cancel
Save