From 8682f15d385c6c0b494f532c3e4bb4aa81e5cf05 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 7e4cb53d617..510d14d1feb 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1418,12 +1418,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.34.1