Bug 9762: (QA follow-up) Add missing issueconfirmed check

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit ee74749058)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Martin Renvoize 2025-04-23 09:24:10 +01:00 committed by Paul Derscheid
parent ec2fbaf888
commit de137f2b66
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 7 additions and 5 deletions

View File

@ -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";
}