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

Allinged collection method of attachments service to sorages service

Andreas Pfohl9e36e482f10c
diff --git a/frontend/src/app/core/state/attachments/attachments.service.ts b/frontend/src/app/core/state/attachments/attachments.service.ts
index 6aa043a5f45..195e7a2afea 100644
--- a/frontend/src/app/core/state/attachments/attachments.service.ts
+++ b/frontend/src/app/core/state/attachments/attachments.service.ts
@@ -96,7 +96,7 @@ export class AttachmentsResourceService {
*
* @param key the collection key
*/
- all(key:string):Observable<IAttachment[]> {
+ collection(key:string):Observable<IAttachment[]> {
return this.query
.select()
.pipe(
diff --git a/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-files-count.function.ts b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-files-count.function.ts
index a70a016961e..760ee978201 100644
--- a/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-files-count.function.ts
+++ b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-files-count.function.ts
@@ -42,7 +42,7 @@ export function workPackageFilesCount(
return combineLatest(
[
- attachmentService.all(workPackage.$links.attachments.href || ''),
+ attachmentService.collection(workPackage.$links.attachments.href || ''),
fileLinkService.all(workPackage.$links.fileLinks?.href || ''),
],
).pipe(