Skip to content

Commit 7381197

Browse files
authored
Merge pull request #4302 from dpalou/MOBILE-4707
MOBILE-4707 quiz: Workaround for sites without MDL-84360 fixed
2 parents d0218fa + 89211c4 commit 7381197

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/addons/mod/quiz/services/quiz-helper.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ export class AddonModQuizHelperProvider {
8989
return true;
9090
}
9191

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+
9297
const options = AddonModQuiz.getDisplayOptionsForQuiz(quiz, AddonModQuiz.getAttemptStateDisplayOption(quiz, attempt));
9398

9499
return options.attempt;

0 commit comments

Comments
 (0)