Exercise: Fix destinations with feedback direct - refs BT#19795

pull/4214/head
Angel Fernando Quiroz Campos 4 years ago
parent 19be68d658
commit fef5120a2f
  1. 8
      main/exercise/exercise_submit_modal.php

@ -62,7 +62,7 @@ if ($tryAgain) {
}
$loaded = isset($_GET['loaded']);
if ($allowTryAgain) {
if ($allowTryAgain || $feedbackType == EXERCISE_FEEDBACK_TYPE_DIRECT) {
unset($exerciseResult[$questionId]);
}
@ -409,8 +409,10 @@ if (!empty($url) && $url != -1) {
).'<a target="_blank" href="'.$url.'">'.get_lang('VisitUrl').'</a><br /><br />';
}
$nextQuestion = $questionNum + 1;
$destinationId = $questionList[$nextQuestion] ?? -1;
if (null === $destinationId) {
$nextQuestion = $questionNum + 1;
$destinationId = $questionList[$nextQuestion] ?? -1;
}
// the link to finish the test
if (-1 == $destinationId) {

Loading…
Cancel
Save