From 0bf814d5586eafaeae321f56872137b8a542012c Mon Sep 17 00:00:00 2001 From: Christian Humpel Date: Sat, 20 Aug 2022 18:00:43 +0200 Subject: [PATCH] Fix #21816: correct Agenda filter (if no filter is selected) --- htdocs/comm/action/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index c60f10be857..7fb2f0f129e 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -757,9 +757,10 @@ if ($type) { $sql .= " AND ca.id = ".((int) $type); } if ($status == '0') { + // To do (not started) $sql .= " AND a.percent = 0"; } -if ($status == '-1' || $status == 'na') { +if ($status == 'na') { // Not applicable $sql .= " AND a.percent = -1"; }