Fix #21816: correct Agenda filter (if no filter is selected)

This commit is contained in:
Christian Humpel 2022-08-20 18:00:43 +02:00
parent f95612d9a5
commit 0bf814d558

View File

@ -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";
}