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

(-)a/C4/Circulation.pm (-3 / +2 lines)
Lines 830-840 sub CanBookBeIssued { Link Here
830
830
831
    # JB34 CHECKS IF BORROWERS DON'T HAVE ISSUE TOO MANY BOOKS
831
    # JB34 CHECKS IF BORROWERS DON'T HAVE ISSUE TOO MANY BOOKS
832
    #
832
    #
833
    my $switch_onsite_checkout =
833
    my $switch_onsite_checkout = (
834
          C4::Context->preference('SwitchOnSiteCheckouts')
834
          C4::Context->preference('SwitchOnSiteCheckouts')
835
      and $issue->{onsite_checkout}
835
      and $issue->{onsite_checkout}
836
      and $issue
836
      and $issue
837
      and $issue->{borrowernumber} == $borrower->{'borrowernumber'} ? 1 : 0;
837
      and $issue->{borrowernumber} == $borrower->{'borrowernumber'} ? 1 : 0 );
838
    my $toomany = TooMany( $borrower, $item->{biblionumber}, $item, { onsite_checkout => $onsite_checkout, switch_onsite_checkout => $switch_onsite_checkout, } );
838
    my $toomany = TooMany( $borrower, $item->{biblionumber}, $item, { onsite_checkout => $onsite_checkout, switch_onsite_checkout => $switch_onsite_checkout, } );
839
    # if TooMany max_allowed returns 0 the user doesn't have permission to check out this book
839
    # if TooMany max_allowed returns 0 the user doesn't have permission to check out this book
840
    if ( $toomany ) {
840
    if ( $toomany ) {
841
- 

Return to bug 18321