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

[42176] Exclude all default values when applying filter values

Oliver Güntherd40e2f739392
diff --git a/frontend/src/app/features/work-packages/components/wp-new/wp-create.service.ts b/frontend/src/app/features/work-packages/components/wp-new/wp-create.service.ts
index 61f3b046a6e..3f496d07ec1 100644
--- a/frontend/src/app/features/work-packages/components/wp-new/wp-create.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-new/wp-create.service.ts
@@ -270,7 +270,7 @@ export class WorkPackageCreateService extends UntilDestroyedMixin {
const query = this.querySpace.query.value;
if (query) {
- const except:string[] = defaults?._links && defaults._links.type ? ['type'] : [];
+ const except:string[] = defaults?._links ? Object.keys(defaults._links) : [];
new WorkPackageFilterValues(this.injector, query.filters, except)
.applyDefaultsFromFilters(object);