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:
parent
ec2fbaf888
commit
de137f2b66
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue