fixing logic hole
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 6 Jan 2006 22:03:06 +0000 (22:03 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 6 Jan 2006 22:03:06 +0000 (22:03 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2645 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm

index 72ca772..0df3437 100644 (file)
@@ -107,7 +107,10 @@ sub patron_circ_summary {
                        LEFT OUTER JOIN $b_table b ON (c.id = b.xact AND b.voided = FALSE)
                  WHERE c.usr = ?
                        AND c.xact_finish IS NULL
                        LEFT OUTER JOIN $b_table b ON (c.id = b.xact AND b.voided = FALSE)
                  WHERE c.usr = ?
                        AND c.xact_finish IS NULL
-                       AND c.stop_fines NOT IN ('CLAIMSRETURNED','LOST')
+                       AND (
+                               c.stop_fines NOT IN ('CLAIMSRETURNED','LOST')
+                               OR c.stop_fines IS NULL
+                       )
        SQL
 
        return action::survey->db_Main->selectrow_arrayref($select, {}, $id);
        SQL
 
        return action::survey->db_Main->selectrow_arrayref($select, {}, $id);