From 07418e4b8e010aa62e1da428c4d176c8e8becc03 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Fri, 30 Jun 2017 10:29:59 -0500 Subject: [PATCH] Show ANNOTATION question type as 'Not reviewed' - refs BT#12615 --- main/exercise/exercise_show.php | 2 +- main/exercise/question.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/exercise/exercise_show.php b/main/exercise/exercise_show.php index ea24e44583..58a2809b3c 100755 --- a/main/exercise/exercise_show.php +++ b/main/exercise/exercise_show.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++; diff --git a/main/exercise/question.class.php b/main/exercise/question.class.php index 5f9e30713b..835c0dcce6 100755 --- a/main/exercise/question.class.php +++ b/main/exercise/question.class.php @@ -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');