From 1f614c01a329e772df31d682289e548e474aed39 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 Signed-off-by: Kyle M Hall --- C4/Circulation.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index b8332bf74a..00ca445797 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.24.1 (Apple Git-126)