From 4982ac40c53e53e04ced9d7c4396ac748c0f37f5 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 30 Mar 2022 16:34:55 +0000 Subject: [PATCH] Bug 30118: (QA follow-up) Fix Perl Critic issues Signed-off-by: Kyle M Hall Signed-off-by: Fridolin Somers --- C4/SIP/ILS/Transaction/Checkin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/SIP/ILS/Transaction/Checkin.pm b/C4/SIP/ILS/Transaction/Checkin.pm index e73107617e..24be0aff78 100644 --- a/C4/SIP/ILS/Transaction/Checkin.pm +++ b/C4/SIP/ILS/Transaction/Checkin.pm @@ -89,7 +89,7 @@ sub do_checkin { my $reserved; my $lookahead = C4::Context->preference('ConfirmFutureHolds'); #number of days to look for future holds - my ($resfound, $resrec, undef) = C4::Reserves::CheckReserves( $item->itemnumber, undef, $lookahead ) unless ( $item->withdrawn ); + my ($resfound) = $item->withdrawn ? q{} : C4::Reserves::CheckReserves( $item->itemnumber, undef, $lookahead ); if ( $resfound eq "Reserved") { $reserved = 1; } -- 2.39.5