Changes "WHERE finedays IS NOT NULL" to "WHERE finedays > 0" in order
to accomodate 0 values in issuingrules.finedays.
---
 C4/Members.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Members.pm b/C4/Members.pm
index 56718f0..c0165c6 100644
--- a/C4/Members.pm
+++ b/C4/Members.pm
@@ -639,7 +639,7 @@ sub IsMemberBlocked {
             LEFT JOIN issuingrules ON 
(issuingrules.itemtype=biblioitems.itemtype) };
     }
        $strsth.=
-        qq{ WHERE finedays IS NOT NULL
+        qq{ WHERE finedays > 0
             AND  date_due < returndate
             AND borrowernumber = ?
             ORDER BY blockingdate DESC, blockedcount DESC
-- 
1.7.3

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to