Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix capability loading if there is more than one page to load (#9260)

Benjamin Bädorf064a05f6db12
diff --git a/frontend/src/app/modules/current-user/current-user.service.ts b/frontend/src/app/modules/current-user/current-user.service.ts
index 9e9dd064189..d38189ab1e1 100644
--- a/frontend/src/app/modules/current-user/current-user.service.ts
+++ b/frontend/src/app/modules/current-user/current-user.service.ts
@@ -101,7 +101,7 @@ export class CurrentUserService {
.fill(null)
.map((_, i) => this.apiV3Service.capabilities.list({
pageSize: this.PAGE_FETCH_SIZE,
- offset: this.PAGE_FETCH_SIZE * (i + 1),
+ offset: i + 2, // Page offsets are 1-indexed, and we already fetched the first page
filters,
}));