From 3838fdee20255d43996127fb95e0765180885d19 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 --- 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.24.2 (Apple Git-127)