Should fix bug when getting question list pagination see BT#6996

skala
Julio Montoya 12 years ago
parent 19dba8ce61
commit 71e5b1bb85
  1. 8
      main/exercice/exercise.class.php

@ -7905,6 +7905,9 @@ class Exercise
/**
* @param int $exeId
* @param array $exercise_stat_info
* @param array $remindList
* @param int $currentQuestion
* @return int
*/
public static function getNextQuestionId($exeId, $exercise_stat_info, $remindList, $currentQuestion)
{
@ -7935,6 +7938,7 @@ class Exercise
}
}
// Only use this feature if all questions were answered and there are contents in the $remindList
/*if (count($answeredQuestions) == count($result['question_list']) && empty($remindList)) {
return null;
@ -8008,6 +8012,10 @@ class Exercise
return $counterRemindListQuestions;
}
}
} else {
if ($currentQuestion > $counterAnsweredQuestions) {
$counterAnsweredQuestions = $currentQuestion + 1;
}
}
return $counterAnsweredQuestions;
}

Loading…
Cancel
Save