diff --git a/mod/quiz/locallib.php b/mod/quiz/locallib.php index b3f6de1720..d3bde8e650 100644 --- a/mod/quiz/locallib.php +++ b/mod/quiz/locallib.php @@ -2108,8 +2170,11 @@ class mod_quiz_display_options extends question_display_options { $options->attempt = self::extract($quiz->reviewattempt, $when, true, false); $options->correctness = self::extract($quiz->reviewcorrectness, $when); - $options->marks = self::extract($quiz->reviewmarks, $when, - self::MARK_AND_MAX, self::MAX_ONLY); + // TODO Remove once Moodle developers fix core moodle bug + // https://app.asana.com/0/1202576739091559/1203214388219424 + // This fixes the activity completion require grade + $options->marks = 2; //self::extract($quiz->reviewmarks, $when, + //self::MARK_AND_MAX, self::MAX_ONLY); $options->feedback = self::extract($quiz->reviewspecificfeedback, $when); $options->generalfeedback = self::extract($quiz->reviewgeneralfeedback, $when); $options->rightanswer = self::extract($quiz->reviewrightanswer, $when); @@ -2127,7 +2192,10 @@ class mod_quiz_display_options extends question_display_options { return $options; } - protected static function extract($bitmask, $bit, + // TODO Remove once Moodle developers fix core moodle bug + // https://app.asana.com/0/1202576739091559/1203214388219424 + // Rename back to protected + public static function extract($bitmask, $bit, $whenset = self::VISIBLE, $whennotset = self::HIDDEN) { if ($bitmask & $bit) { return $whenset;