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

(-)a/C4/Circulation.pm (-2 / +1 lines)
Lines 893-899 sub CanBookBeIssued { Link Here
893
      and $issue->borrowernumber == $borrower->{'borrowernumber'} ? 1 : 0 );
893
      and $issue->borrowernumber == $borrower->{'borrowernumber'} ? 1 : 0 );
894
    my $toomany = TooMany( $borrower, $item->{biblionumber}, $item, { onsite_checkout => $onsite_checkout, switch_onsite_checkout => $switch_onsite_checkout, } );
894
    my $toomany = TooMany( $borrower, $item->{biblionumber}, $item, { onsite_checkout => $onsite_checkout, switch_onsite_checkout => $switch_onsite_checkout, } );
895
    # if TooMany max_allowed returns 0 the user doesn't have permission to check out this book
895
    # if TooMany max_allowed returns 0 the user doesn't have permission to check out this book
896
    if ( $toomany  & !$needsconfirmation{RENEW_ISSUE} ) {
896
    if ( $toomany && !$needsconfirmation{RENEW_ISSUE} ) {
897
        if ( $toomany->{max_allowed} == 0 ) {
897
        if ( $toomany->{max_allowed} == 0 ) {
898
            $needsconfirmation{PATRON_CANT} = 1;
898
            $needsconfirmation{PATRON_CANT} = 1;
899
        }
899
        }
900
- 

Return to bug 19198