View | Details | Raw Unified | Return to bug 9762
Collapse All | Expand All

(-)a/C4/Circulation.pm (-6 / +7 lines)
Lines 1418-1429 sub CanBookBeIssued { Link Here
1418
    if ( $restriction_age && $patron->dateofbirth && $restriction_age > $patron->get_age() ) {
1418
    if ( $restriction_age && $patron->dateofbirth && $restriction_age > $patron->get_age() ) {
1419
        if ( C4::Context->preference('AgeRestrictionOverride') ) {
1419
        if ( C4::Context->preference('AgeRestrictionOverride') ) {
1420
            $needsconfirmation{AGE_RESTRICTION} = "$agerestriction";
1420
            $needsconfirmation{AGE_RESTRICTION} = "$agerestriction";
1421
            if ($message) {
1421
            if ($issueconfirmed) {
1422
                $message = "$message + age restriction";
1422
                if ($message) {
1423
            } else {
1423
                    $message = "$message + age restriction";
1424
                $message = "age restriction";
1424
                } else {
1425
                    $message = "age restriction";
1426
                }
1427
                push( @message_log, "age restriction" );
1425
            }
1428
            }
1426
            push( @message_log, "age restriction" );
1427
        } else {
1429
        } else {
1428
            $issuingimpossible{AGE_RESTRICTION} = "$agerestriction";
1430
            $issuingimpossible{AGE_RESTRICTION} = "$agerestriction";
1429
        }
1431
        }
1430
- 

Return to bug 9762