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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#53672] removed settings default
Eric Schubert0d7d13d72e2a
diff --git a/app/models/project.rb b/app/models/project.rbindex e3596966e96..e50879c90cb 100644--- a/app/models/project.rb+++ b/app/models/project.rb@@ -89,7 +89,7 @@ class Project < ApplicationRecordhas_many :project_storages, dependent: :destroy, class_name: 'Storages::ProjectStorage'has_many :storages, through: :project_storages- store_attribute :settings, :deactivate_work_package_attachments, :boolean, default: false+ store_attribute :settings, :deactivate_work_package_attachments, :booleanacts_as_favorablediff --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.tsindex 9be6ba66135..80f637ffa47 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@@ -27,7 +27,7 @@//++import { Injector } from '@angular/core';-import { combineLatest, Observable, BehaviorSubject } from 'rxjs';+import { combineLatest, Observable, of } from 'rxjs';import { map } from 'rxjs/operators';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';@@ -40,10 +40,13 @@ export function workPackageFilesCount():Observable<number> {const attachmentService = injector.get(AttachmentsResourceService);const fileLinkService = injector.get(FileLinksResourceService);- const attachmentsCollection = workPackage.$links.attachments ? attachmentService.collection(workPackage.$links.attachments.href || '') : new BehaviorSubject([]);+ const attachmentsCollection = workPackage.$links.attachments+ ? attachmentService.collection(workPackage.$links.attachments.href || '')+ : of([]);const fileLinksCollection = fileLinkService.collection(workPackage.$links.fileLinks?.href || '');- return combineLatest(- [attachmentsCollection, fileLinksCollection],- ).pipe(map(([a, f]) => a.length + f.length));+ return combineLatest([+ attachmentsCollection,+ fileLinksCollection,+ ]).pipe(map(([a, f]) => a.length + f.length));}