diff --git a/src/addons/mod/quiz/services/handlers/prefetch.ts b/src/addons/mod/quiz/services/handlers/prefetch.ts index 1849d3b09..4b1e9d1c2 100644 --- a/src/addons/mod/quiz/services/handlers/prefetch.ts +++ b/src/addons/mod/quiz/services/handlers/prefetch.ts @@ -231,7 +231,7 @@ export class AddonModQuizPrefetchHandlerService extends CoreCourseActivityPrefet const quiz = await AddonModQuiz.getQuiz(courseId, module.id, { siteId }); - if (quiz.allowofflineattempts !== 1 || quiz.hasquestions === 0) { + if (!AddonModQuiz.isQuizOffline(quiz) || quiz.hasquestions === 0) { return false; } diff --git a/src/addons/mod/quiz/services/quiz.ts b/src/addons/mod/quiz/services/quiz.ts index 3582a144a..0c155e0b9 100644 --- a/src/addons/mod/quiz/services/quiz.ts +++ b/src/addons/mod/quiz/services/quiz.ts @@ -1524,7 +1524,9 @@ export class AddonModQuizProvider { */ isQuizOffline(quiz: AddonModQuizQuizWSData): boolean { // Don't allow downloading the quiz if offline is disabled to prevent wasting a lot of data when opening it. - return !!quiz.allowofflineattempts && !CoreSites.getCurrentSite()?.isOfflineDisabled(); + return !!quiz.allowofflineattempts + && !this.isNavigationSequential(quiz) + && !CoreSites.getCurrentSite()?.isOfflineDisabled(); } /**