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

(-)a/C4/Circulation.pm (-5 / +4 lines)
Lines 591-601 sub TooMany { Link Here
591
    if ( defined( $branch_borrower_circ_rule->{patron_maxissueqty} )
591
    if ( defined( $branch_borrower_circ_rule->{patron_maxissueqty} )
592
        and $branch_borrower_circ_rule->{patron_maxissueqty} ne '' )
592
        and $branch_borrower_circ_rule->{patron_maxissueqty} ne '' )
593
    {
593
    {
594
        my $checkouts;
594
        my $checkouts = $patron->checkouts;
595
        if ( C4::Context->preference('CircControl') eq 'PickupLibrary' ) {
595
        if ( !$branch_borrower_circ_rule->{branchcode} ) {    # global level: look at all checkouts
596
        } elsif ( C4::Context->preference('CircControl') eq 'PatronLibrary' ) {    # do the same
597
        } elsif ( C4::Context->preference('CircControl') eq 'PickupLibrary' ) {
596
            $checkouts = $patron->checkouts->search( { 'me.branchcode' => $branch } );
598
            $checkouts = $patron->checkouts->search( { 'me.branchcode' => $branch } );
597
        } elsif ( C4::Context->preference('CircControl') eq 'PatronLibrary' ) {
598
            $checkouts = $patron->checkouts;    # if branch is the patron's home branch, then count all loans by patron
599
        } else {
599
        } else {
600
            my $branch_type = C4::Context->preference('HomeOrHoldingBranch') || 'homebranch';
600
            my $branch_type = C4::Context->preference('HomeOrHoldingBranch') || 'homebranch';
601
            $checkouts = $patron->checkouts->search(
601
            $checkouts = $patron->checkouts->search(
602
- 

Return to bug 41280