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

(-)a/C4/Circulation.pm (-3 / +3 lines)
Lines 543-552 sub TooMany { Link Here
543
            $checkouts = $patron->checkouts->search(
543
            $checkouts = $patron->checkouts->search(
544
                { 'me.branchcode' => $branch} );
544
                { 'me.branchcode' => $branch} );
545
        } elsif (C4::Context->preference('CircControl') eq 'PatronLibrary') {
545
        } elsif (C4::Context->preference('CircControl') eq 'PatronLibrary') {
546
            ; # if branch is the patron's home branch, then count all loans by patron
546
            $checkouts = $patron->checkouts; # if branch is the patron's home branch, then count all loans by patron
547
        } else {
547
        } else {
548
            $checkouts = $patron->checkouts->search(
548
            $checkouts = $patron->checkouts->search(
549
                { 'item.homebranch' => $branch} );
549
                { 'item.homebranch' => $branch},
550
                { prefetch          => 'item' } );
550
        }
551
        }
551
552
552
        my $checkout_count = $checkouts->count;
553
        my $checkout_count = $checkouts->count;
553
- 

Return to bug 26132