Quiz: Fix Previous Button when check question to review - refs BT#17549

pull/3388/head
Angel Fernando Quiroz Campos 5 years ago
parent 23c8688a4b
commit 9946716c7f
  1. 6
      main/exercise/exercise.class.php

@ -3236,9 +3236,11 @@ class Exercise
return '';
}
$isReviewingAnswers = isset($_REQUEST['reminder']) && 2 == $_REQUEST['reminder'];
// User
$endReminderValue = false;
if (!empty($myRemindList)) {
if (!empty($myRemindList) && $isReviewingAnswers) {
$endValue = end($myRemindList);
if ($endValue == $question_id) {
$endReminderValue = true;
@ -3262,7 +3264,7 @@ class Exercise
if ($questionNum != 1 && $this->showPreviousButton()) {
$prev_question = $questionNum - 2;
$showPreview = true;
if (!empty($myRemindList)) {
if (!empty($myRemindList) && $isReviewingAnswers) {
$beforeId = null;
for ($i = 0; $i < count($myRemindList); $i++) {
if (isset($myRemindList[$i]) && $myRemindList[$i] == $question_id) {

Loading…
Cancel
Save