Show ANNOTATION question type as 'Not reviewed' - refs BT#12615

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent bbd9f41d86
commit 07418e4b8e
  1. 2
      main/exercise/exercise_show.php
  2. 2
      main/exercise/question.class.php

@ -835,7 +835,7 @@ foreach ($questionList as $questionId) {
$score['comments'] = isset($comnt) ? $comnt : null;
}
if (in_array($objQuestionTmp->type, [FREE_ANSWER, ORAL_EXPRESSION])) {
if (in_array($objQuestionTmp->type, [FREE_ANSWER, ORAL_EXPRESSION, ANNOTATION])) {
$check = $objQuestionTmp->isQuestionWaitingReview($score);
if ($check === false) {
$countPendingQuestions++;

@ -1935,7 +1935,7 @@ abstract class Question
$class = 'success';
}
if ($this->type == FREE_ANSWER || $this->type == ORAL_EXPRESSION) {
if (in_array($this->type, [FREE_ANSWER, ORAL_EXPRESSION, ANNOTATION])) {
$score['revised'] = isset($score['revised']) ? $score['revised'] : false;
if ($score['revised'] == true) {
$score_label = get_lang('Revised');

Loading…
Cancel
Save