From cc81a02f2287178897f885942ebefe208642187c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Thu, 30 Apr 2020 12:03:19 +0200 Subject: [PATCH] Bug 25261: Checkout confirmation depending on syspref MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With this follow-up patch, the intended confirmation of checkin based on CircConfirmParts value is effective. Signed-off-by: Frédéric Demians --- C4/Circulation.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index f487fca465..6f333db894 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -844,9 +844,11 @@ sub CanBookBeIssued { } # Additional Materials Check - my $no_of_parts = $item_object->materials; - if ( $no_of_parts > 0 ) { - $needsconfirmation{additional_materials} = $no_of_parts; + if ( C4::Context->preference("CircConfirmParts") ) { + my $no_of_parts = $item_object->materials || 0; + if ( $no_of_parts > 0 ) { + $needsconfirmation{additional_materials} = $no_of_parts; + } } # -- 2.17.1