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

(-)a/C4/Overdues.pm (-2 / +1 lines)
Lines 1261-1267 sub GetOverduesForBranch { Link Here
1261
    my $i = 0;
1261
    my $i = 0;
1262
    my $sth;
1262
    my $sth;
1263
    if ($location) {
1263
    if ($location) {
1264
        $sth = $dbh->prepare("$select AND items.location = ? GROUP BY borrowers.borrowernumber ORDER BY borrowers.surname, borrowers.firstname");
1264
        $sth = $dbh->prepare("$select AND items.location = ? GROUP BY borrowers.borrowernumber, items.itemnumber ORDER BY borrowers.surname, borrowers.firstname");
1265
        $sth->execute($branch, $location);
1265
        $sth->execute($branch, $location);
1266
    } else {
1266
    } else {
1267
        $sth = $dbh->prepare("$select GROUP BY borrowers.borrowernumber, items.itemnumber ORDER BY borrowers.surname, borrowers.firstname");
1267
        $sth = $dbh->prepare("$select GROUP BY borrowers.borrowernumber, items.itemnumber ORDER BY borrowers.surname, borrowers.firstname");
1268
- 

Return to bug 8112