Bug 7396: Debarred message not showing over SIP2
authorIan Walls <ian.walls@bywatersolutions.com>
Mon, 2 Jan 2012 16:06:13 +0000 (11:06 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 13 Jan 2012 11:17:04 +0000 (12:17 +0100)
Corrects typo in list of flags; was DEBARRED, but the actual name of the flag is
DBARRED (for some reason)

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/SIP/ILS/Patron.pm

index 2b0b443..95981fb 100644 (file)
@@ -110,7 +110,7 @@ sub new {
     );
     }
     $debug and warn "patron fines: $ilspatron{fines} ... amountoutstanding: $kp->{amountoutstanding} ... CHARGES->amount: $flags->{CHARGES}->{amount}";
-       for (qw(EXPIRED CHARGES CREDITS GNA LOST DEBARRED NOTES)) {
+       for (qw(EXPIRED CHARGES CREDITS GNA LOST DBARRED NOTES)) {
                ($flags->{$_}) or next;
         if ($_ ne 'NOTES' and $flags->{$_}->{message}) {
             $ilspatron{screen_msg} .= " -- " . $flags->{$_}->{message};  # show all but internal NOTES