From 96c127e87607c61e8af7d4b539f30bb355e18bde Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 11 May 2016 14:42:33 +0200 Subject: [PATCH] Bug 13871: [QA Follow-up] Fix small regression on AF with branchcode in Patron Info request Content-Type: text/plain; charset=utf-8 If you enable send_patron_home_library_in_af in your sip account, you want a separate AF field for the home branch. Test plan: Send a 63 (Patron Info) and verify that you have an extra AF. Signed-off-by: Marcel de Rooy Tested Patron Status and Patron Info. --- C4/SIP/Sip/MsgType.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/SIP/Sip/MsgType.pm b/C4/SIP/Sip/MsgType.pm index 360f7fe..787449b 100644 --- a/C4/SIP/Sip/MsgType.pm +++ b/C4/SIP/Sip/MsgType.pm @@ -1001,10 +1001,10 @@ sub handle_patron_info { if( defined( $patron_pwd ) && !$password_rc ) { $msg .= ' -- ' . INVALID_PW; } + $resp .= maybe_add( FID_SCREEN_MSG, $msg, $server ); if ( $server->{account}->{send_patron_home_library_in_af} ) { - $msg .= ' -- ' . $patron->{branchcode}; + $resp .= maybe_add( FID_SCREEN_MSG, $patron->{branchcode}, $server); } - $resp .= maybe_add( FID_SCREEN_MSG, $msg, $server ); $resp .= maybe_add( FID_PRINT_LINE, $patron->print_line ); } else { -- 1.7.10.4