From 56eb5d3740eef6b067b539185af4844255305466 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 24 Feb 2026 11:51:13 +0100 Subject: [PATCH] fix: show tasks spanning entire gantt date range Tasks whose start date is before and end date is after the visible gantt range were not shown because the API filter only checked whether individual date fields fell within the range. Add a fourth filter clause to match tasks that fully encompass the visible date range. Fixes go-vikunja/vikunja#2269 --- frontend/src/views/project/helpers/useGanttFilters.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/project/helpers/useGanttFilters.ts b/frontend/src/views/project/helpers/useGanttFilters.ts index af199615c..edb3cdf04 100644 --- a/frontend/src/views/project/helpers/useGanttFilters.ts +++ b/frontend/src/views/project/helpers/useGanttFilters.ts @@ -96,7 +96,8 @@ function ganttFiltersToApiParams(filters: GanttFilters): TaskFilterParams { filter: '(' + '(start_date >= "' + dateFrom + '" && start_date <= "' + dateTo + '") || ' + '(end_date >= "' + dateFrom + '" && end_date <= "' + dateTo + '") || ' + - '(due_date >= "' + dateFrom + '" && due_date <= "' + dateTo + '")' + + '(due_date >= "' + dateFrom + '" && due_date <= "' + dateTo + '") || ' + + '(start_date <= "' + dateFrom + '" && end_date >= "' + dateTo + '")' + ')', filter_include_nulls: filters.showTasksWithoutDates, }