From 63a62edcf6432644dc277eb574714a08e1866bb2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 15 Oct 2022 13:41:15 +0200 Subject: [PATCH] Fix filter on member without subscription --- htdocs/adherents/list.php | 2 +- htdocs/partnership/partnership_list.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php index 607ef8117f6..6b52d516913 100644 --- a/htdocs/adherents/list.php +++ b/htdocs/adherents/list.php @@ -365,7 +365,7 @@ if ($search_type > 0) { $sql .= " AND t.rowid=".((int) $search_type); } if ($search_filter == 'withoutsubscription') { - $sql .= " AND (datefin IS NULL OR t.subscription = '0')"; + $sql .= " AND (datefin IS NULL)"; } if ($search_filter == 'uptodate') { $sql .= " AND (datefin >= '".$db->idate($now)."' OR t.subscription = '0')"; diff --git a/htdocs/partnership/partnership_list.php b/htdocs/partnership/partnership_list.php index 0f4aa61f621..aaf88dd938d 100644 --- a/htdocs/partnership/partnership_list.php +++ b/htdocs/partnership/partnership_list.php @@ -359,7 +359,7 @@ foreach ($search as $key => $val) { } if ($managedfor == 'member') { if ($search_filter == 'withoutsubscription') { - $sql .= " AND (d.datefin IS NULL OR dty.subscription = 0)"; + $sql .= " AND (d.datefin IS NULL)"; } if ($search_filter == 'uptodate') { $sql .= " AND (d.datefin >= '".$db->idate($now)."' OR dty.subscription = 0)";