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

Use typeahead filter and always use filterable select in query

Oliver Günthere4aecdc26a30
diff --git a/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts
index 8d246c5c625..8d7cb2912f9 100644
--- a/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts
@@ -121,7 +121,7 @@ export class FilterSearchableMultiselectValueComponent extends UntilDestroyedMix
const filters = new ApiV3FilterBuilder();
if (matching) {
- filters.add('subjectOrId', '**', [matching]);
+ filters.add('typeahead', '**', [matching]);
}
return filters;
diff --git a/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html b/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html
index c6c2d300694..60e62f9c4eb 100644
--- a/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html
+++ b/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html
@@ -98,18 +98,11 @@
></filter-string-value>
<filter-searchable-multiselect-value
- *ngSwitchCase="'[]WorkPackage'"
- (filterChanged)="onFilterUpdated($event)"
- [shouldFocus]="shouldFocus"
- [filter]="filter"
- ></filter-searchable-multiselect-value>
-
- <filter-toggled-multiselect-value
*ngSwitchDefault
(filterChanged)="onFilterUpdated($event)"
[shouldFocus]="shouldFocus"
[filter]="filter"
- ></filter-toggled-multiselect-value>
+ ></filter-searchable-multiselect-value>
</div>
</ng-container>