From 8cf058a7015aeddf9e2101f0f9f331e0d5c94944 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 23 Apr 2025 09:24:10 +0100 Subject: [PATCH] Bug 9762: (QA follow-up) Add missing issueconfirmed check --- C4/Circulation.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 26748dfbc62..8249a69886f 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1406,12 +1406,14 @@ sub CanBookBeIssued { if ( $restriction_age && $patron->dateofbirth && $restriction_age > $patron->get_age() ) { if ( C4::Context->preference('AgeRestrictionOverride') ) { $needsconfirmation{AGE_RESTRICTION} = "$agerestriction"; - if ($message) { - $message = "$message + age restriction"; - } else { - $message = "age restriction"; + if ($issueconfirmed) { + if ($message) { + $message = "$message + age restriction"; + } else { + $message = "age restriction"; + } + push( @message_log, "age restriction" ); } - push( @message_log, "age restriction" ); } else { $issuingimpossible{AGE_RESTRICTION} = "$agerestriction"; } -- 2.49.0