Bug 13740: Fix null vs not null in the query
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 25 Feb 2015 09:44:00 +0000 (10:44 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 31 Mar 2015 13:54:30 +0000 (10:54 -0300)
The previous patch did not work, only patrons *with* guanrantees were
deleted!

Signed-off-by: Koha Team AMU <koha.aixmarseille@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Members.pm

index 7c3f9f6..4ca83b9 100644 (file)
@@ -2124,7 +2124,7 @@ sub GetBorrowersToExpunge {
         LEFT JOIN old_issues USING (borrowernumber)
         LEFT JOIN issues USING (borrowernumber) 
         WHERE  category_type <> 'S'
-        AND tmp.guarantorid IS NOT NULL
+        AND tmp.guarantorid IS NULL
    |;
 
     my @query_params;