MOBILE-2567 quiz: Fix deleting offline data if attempt was deleted

main
Dani Palou 2018-09-06 16:33:28 +02:00
parent c2a471a507
commit 2484605238
1 changed files with 2 additions and 1 deletions

View File

@ -285,7 +285,8 @@ export class AddonModQuizSyncProvider extends CoreSyncBaseProvider {
// Attempt not found or it's finished in online. Discard it. // Attempt not found or it's finished in online. Discard it.
warnings.push(this.translate.instant('addon.mod_quiz.warningattemptfinished')); warnings.push(this.translate.instant('addon.mod_quiz.warningattemptfinished'));
return this.finishSync(siteId, quiz, courseId, warnings, lastAttemptId, offlineAttempt, onlineAttempt, true); return this.finishSync(siteId, quiz, courseId, warnings, offlineAttempt.id, offlineAttempt, onlineAttempt,
true);
} }
// Get the data stored in offline. // Get the data stored in offline.