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

(-)a/C4/Reserves.pm (-1 / +1 lines)
Lines 44-50 use Koha::Holds; Link Here
44
use Koha::ItemTypes;
44
use Koha::ItemTypes;
45
use Koha::Items;
45
use Koha::Items;
46
use Koha::Libraries;
46
use Koha::Libraries;
47
use Koha::Old::Holds;
48
use Koha::Patrons;
47
use Koha::Patrons;
49
use Koha::Plugins;
48
use Koha::Plugins;
50
use Koha::Policy::Holds;
49
use Koha::Policy::Holds;
Lines 1637-1642 sub _FixPriority { Link Here
1637
        $hold = Koha::Holds->find( $reserve_id );
1636
        $hold = Koha::Holds->find( $reserve_id );
1638
        if (!defined $hold){
1637
        if (!defined $hold){
1639
            # may have already been checked out and hold fulfilled
1638
            # may have already been checked out and hold fulfilled
1639
            require Koha::Old::Holds;
1640
            $hold = Koha::Old::Holds->find( $reserve_id );
1640
            $hold = Koha::Old::Holds->find( $reserve_id );
1641
        }
1641
        }
1642
        return unless $hold;
1642
        return unless $hold;
(-)a/Koha/Hold.pm (-2 / +1 lines)
Lines 34-40 use Koha::Biblios; Link Here
34
use Koha::Hold::CancellationRequests;
34
use Koha::Hold::CancellationRequests;
35
use Koha::Items;
35
use Koha::Items;
36
use Koha::Libraries;
36
use Koha::Libraries;
37
use Koha::Old::Holds;
38
use Koha::Calendar;
37
use Koha::Calendar;
39
use Koha::Plugins;
38
use Koha::Plugins;
40
39
Lines 987-992 Move a hold to the old_reserve table following the same pattern as Koha::Patron- Link Here
987
sub _move_to_old {
986
sub _move_to_old {
988
    my ($self) = @_;
987
    my ($self) = @_;
989
    my $hold_infos = $self->unblessed;
988
    my $hold_infos = $self->unblessed;
989
    require Koha::Old::Hold;
990
    return Koha::Old::Hold->new( $hold_infos )->store;
990
    return Koha::Old::Hold->new( $hold_infos )->store;
991
}
991
}
992
992
993
- 

Return to bug 35959