From 2afa7918b14a42b058856c705ac90cc6347e7fd1 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 15 Dec 2022 17:06:28 +0100 Subject: [PATCH] MOBILE-4081 database: Fix entry.id is undefined after change group --- src/addons/mod/data/pages/entry/entry.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/addons/mod/data/pages/entry/entry.ts b/src/addons/mod/data/pages/entry/entry.ts index 470f97f7a..cb6d43cfe 100644 --- a/src/addons/mod/data/pages/entry/entry.ts +++ b/src/addons/mod/data/pages/entry/entry.ts @@ -352,6 +352,7 @@ export class AddonModDataEntryPage implements OnInit, OnDestroy { if (this.offset === undefined) { // No offset passed, display the first entry. pageIndex = 0; + this.offset = 0; } else if (this.offset > 0) { // Online entry. pageIndex = this.offset % perPage + (entries.offlineEntries?.length || 0);