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

(-)a/C4/Reserves.pm (-13 / +1 lines)
Lines 264-281 sub GetReserve { Link Here
264
    my $query = "SELECT * FROM reserves WHERE reserve_id = ?";
264
    my $query = "SELECT * FROM reserves WHERE reserve_id = ?";
265
    my $sth = $dbh->prepare( $query );
265
    my $sth = $dbh->prepare( $query );
266
    $sth->execute( $reserve_id );
266
    $sth->execute( $reserve_id );
267
    my $res = $sth->fetchrow_hashref();
267
    return $sth->fetchrow_hashref();
268
269
    unless ($res) {
270
        $query = "SELECT * FROM old_reserves WHERE reserve_id = ?";
271
        $sth   = $dbh->prepare($query);
272
        $sth->execute($reserve_id);
273
        $res = $sth->fetchrow_hashref();
274
    }
275
276
    carp("No hold for for reserve_id $reserve_id") unless $res;
277
278
    return $res;
279
}
268
}
280
269
281
=head2 GetReservesFromBiblionumber
270
=head2 GetReservesFromBiblionumber
282
- 

Return to bug 9303