Merge pull request #21817 from Humml87/develop_#21816_Agenda_filter

Fix #21816: correct Agenda filter (if no filter is selected)
This commit is contained in:
Laurent Destailleur 2022-08-22 10:44:35 +02:00 committed by GitHub
commit adfddcd9fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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