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 1602-1607 sub _FixPriority { Link Here
1602
        $hold = Koha::Holds->find( $reserve_id );
1601
        $hold = Koha::Holds->find( $reserve_id );
1603
        if (!defined $hold){
1602
        if (!defined $hold){
1604
            # may have already been checked out and hold fulfilled
1603
            # may have already been checked out and hold fulfilled
1604
            require Koha::Old::Holds;
1605
            $hold = Koha::Old::Holds->find( $reserve_id );
1605
            $hold = Koha::Old::Holds->find( $reserve_id );
1606
        }
1606
        }
1607
        return unless $hold;
1607
        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 1014-1019 Move a hold to the old_reserve table following the same pattern as Koha::Patron- Link Here
1014
sub _move_to_old {
1013
sub _move_to_old {
1015
    my ($self) = @_;
1014
    my ($self) = @_;
1016
    my $hold_infos = $self->unblessed;
1015
    my $hold_infos = $self->unblessed;
1016
    require Koha::Old::Hold;
1017
    return Koha::Old::Hold->new( $hold_infos )->store;
1017
    return Koha::Old::Hold->new( $hold_infos )->store;
1018
}
1018
}
1019
1019
1020
- 

Return to bug 35959