From 38e82d3a90601145ae60855e632667f7df171a35 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 17 Dec 2019 11:31:40 +0100 Subject: [PATCH] Bug 24250: Do not duplicate debarred comment in patron screen message AF field Caused by commit bddfed75913a2302c19c00b00a6fe86538af6f9f Bug 19933: Remove patronflags - tricky ones Test plan: 1 - Setup SIP in your testing environment https://wiki.koha-community.org/wiki/Koha_SIP2_server_setup 2 - Set a patron to have a restriction 3 - Send a patron status request or patron information command via the SIP cli emulator (see link above) 4 - Note the comment on the restriction is sent only once Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson (cherry picked from commit 268a62a6d2f8c6b3fe1a07033b533b31fc88db33) Signed-off-by: Lucas Gass --- C4/SIP/ILS/Patron.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/SIP/ILS/Patron.pm b/C4/SIP/ILS/Patron.pm index acb790fea6..e840b3f0ef 100644 --- a/C4/SIP/ILS/Patron.pm +++ b/C4/SIP/ILS/Patron.pm @@ -125,7 +125,7 @@ sub new { if ( $circ_blocked ) { $ilspatron{screen_msg} .= " -- " . "Patron has overdues"; } - for (qw(EXPIRED CHARGES CREDITS GNA LOST DBARRED NOTES)) { + for (qw(EXPIRED CHARGES CREDITS GNA LOST NOTES)) { ($flags->{$_}) or next; if ($_ ne 'NOTES' and $flags->{$_}->{message}) { $ilspatron{screen_msg} .= " -- " . $flags->{$_}->{message}; # show all but internal NOTES -- 2.39.5