We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dc0af9 commit 89211c4Copy full SHA for 89211c4
src/addons/mod/quiz/services/quiz-helper.ts
@@ -89,6 +89,11 @@ export class AddonModQuizHelperProvider {
89
return true;
90
}
91
92
+ if (quiz.reviewattempt === undefined) {
93
+ // Workaround for sites where MDL-84360 is not fixed. Allow review, the review WS will throw an error if not allowed.
94
+ return true;
95
+ }
96
+
97
const options = AddonModQuiz.getDisplayOptionsForQuiz(quiz, AddonModQuiz.getAttemptStateDisplayOption(quiz, attempt));
98
99
return options.attempt;
0 commit comments