From d2d53878f6020bff540fc9249b793e5effb3f0dd Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 27 Apr 2020 07:07:12 -0400 Subject: [PATCH] Bug 25227: Display correct message if item is withdrawn and withdrawn returns are allowed Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- C4/SIP/ILS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/SIP/ILS.pm b/C4/SIP/ILS.pm index 94bc15461c..75d4b2b958 100644 --- a/C4/SIP/ILS.pm +++ b/C4/SIP/ILS.pm @@ -220,7 +220,7 @@ sub checkin { if ( !$circ->ok && $circ->alert_type && $circ->alert_type == 98 ) { # data corruption $circ->screen_msg("Checkin failed: data problem"); syslog( "LOG_WARNING", "Problem with issue_id in issues and old_issues; check the about page" ); - } elsif ( $data->{messages}->{withdrawn} && !$circ->ok ) { + } elsif ( $data->{messages}->{withdrawn} && !$circ->ok && C4::Context->preference("BlockReturnOfWithdrawnItems") ) { $circ->screen_msg("Item withdrawn, return not allowed"); syslog("LOG_DEBUG", "C4::SIP::ILS::Checkin - item withdrawn"); } elsif ( $data->{messages}->{WasLost} && !$circ->ok && C4::Context->preference("BlockReturnOfLostItems") ) { -- 2.39.5