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

(-)a/C4/Circulation.pm (-12 / +11 lines)
Lines 1158-1174 sub CanBookBeIssued { Link Here
1158
            ReservesOnSamePeriod($item_object->biblionumber, $item_object->itemnumber, $now->ymd, $duedate->ymd);
1158
            ReservesOnSamePeriod($item_object->biblionumber, $item_object->itemnumber, $now->ymd, $duedate->ymd);
1159
        if ($preventCheckoutOnSameReservePeriod && $reserves_on_same_period) {
1159
        if ($preventCheckoutOnSameReservePeriod && $reserves_on_same_period) {
1160
            my $reserve = $reserves_on_same_period->[0];
1160
            my $reserve = $reserves_on_same_period->[0];
1161
            my $patron = Koha::Patrons->find( $reserve->{borrowernumber} );
1161
            if ($reserve->{borrowernumber} ne $patron->borrowernumber) {
1162
            my $branchname = Koha::Libraries->find($reserve->{branchcode})->branchname;
1162
                my $patron = Koha::Patrons->find( $reserve->{borrowernumber} );
1163
1163
                $needsconfirmation{RESERVED} = 1;
1164
            $needsconfirmation{RESERVED} = 1;
1164
                $needsconfirmation{resfirstname} = $patron->firstname;
1165
            $needsconfirmation{resfirstname} = $patron->firstname;
1165
                $needsconfirmation{ressurname} = $patron->surname;
1166
            $needsconfirmation{ressurname} = $patron->surname;
1166
                $needsconfirmation{rescardnumber} = $patron->cardnumber;
1167
            $needsconfirmation{rescardnumber} = $patron->cardnumber;
1167
                $needsconfirmation{resborrowernumber} = $patron->borrowernumber;
1168
            $needsconfirmation{resborrowernumber} = $patron->borrowernumber;
1168
                $needsconfirmation{resbranchcode} = $patron->branchcode;
1169
            $needsconfirmation{resbranchcode} = $patron->branchcode;
1169
                $needsconfirmation{resreservedate} = $reserve->{reservedate};
1170
            $needsconfirmation{resreservedate} = $reserve->{reservedate};
1170
                $needsconfirmation{reserve_id} = $reserve->{reserve_id};
1171
            $needsconfirmation{reserve_id} = $reserve->{reserve_id};
1171
            }
1172
        }
1172
        }
1173
1173
1174
    }
1174
    }
1175
- 

Return to bug 15261