From 8f8d8effa61c966e9c85902d6dc600c769060488 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 Signed-off-by: Joy Nelson --- 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 de44bdc7a8..fc1864cea7 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