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

Don't remove empty strings, as they are valid

Oliver Günther34727be6f93e
diff --git a/frontend/src/app/features/work-packages/components/filters/abstract-filter-date-time-value/abstract-filter-date-time-value.controller.ts b/frontend/src/app/features/work-packages/components/filters/abstract-filter-date-time-value/abstract-filter-date-time-value.controller.ts
index 7bf00327934..ce4c3218ccd 100644
--- a/frontend/src/app/features/work-packages/components/filters/abstract-filter-date-time-value/abstract-filter-date-time-value.controller.ts
+++ b/frontend/src/app/features/work-packages/components/filters/abstract-filter-date-time-value/abstract-filter-date-time-value.controller.ts
@@ -45,7 +45,7 @@ export abstract class AbstractDateTimeValueController extends UntilDestroyedMixi
}
ngOnInit() {
- _.remove(this.filter.values as string[], (value) => !this.timezoneService.isValidISODateTime(value));
+ _.remove(this.filter.values as string[], (value) => !(value === '' || this.timezoneService.isValidISODateTime(value)));
}
public abstract get lowerBoundary():Moment|null;