Explorar o código

Show only status for the selected student answer BT#16256

Julio Montoya %!s(int64=5) %!d(string=hai) anos
pai
achega
ce38ad3b61
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      main/inc/lib/exercise_show_functions.lib.php

+ 5 - 1
main/inc/lib/exercise_show_functions.lib.php

@@ -413,7 +413,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%">';
-            echo $status;
+            // Show only status for the selected student answer BT#16256
+            if ($studentChoice) {
+                echo $status;
+            }
+
             echo '</td>';
             echo '</td>';
         }
         }