Bug 35959: Fix C3 merge of Koha::Old::Hold
Test plan:
Run `perl -c Koha/Old/Hold.pm`
It should print 'syntax OK'
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit c951b02182)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
62e4e77fc8
commit
4db70b3d86
|
|
@ -44,7 +44,6 @@ use Koha::Holds;
|
|||
use Koha::ItemTypes;
|
||||
use Koha::Items;
|
||||
use Koha::Libraries;
|
||||
use Koha::Old::Holds;
|
||||
use Koha::Patrons;
|
||||
use Koha::Plugins;
|
||||
use Koha::Policy::Holds;
|
||||
|
|
@ -1597,6 +1596,7 @@ sub _FixPriority {
|
|||
$hold = Koha::Holds->find( $reserve_id );
|
||||
if (!defined $hold){
|
||||
# may have already been checked out and hold fulfilled
|
||||
require Koha::Old::Holds;
|
||||
$hold = Koha::Old::Holds->find( $reserve_id );
|
||||
}
|
||||
return unless $hold;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ use Koha::Biblios;
|
|||
use Koha::Hold::CancellationRequests;
|
||||
use Koha::Items;
|
||||
use Koha::Libraries;
|
||||
use Koha::Old::Holds;
|
||||
use Koha::Calendar;
|
||||
use Koha::Plugins;
|
||||
|
||||
|
|
@ -1014,6 +1013,7 @@ Move a hold to the old_reserve table following the same pattern as Koha::Patron-
|
|||
sub _move_to_old {
|
||||
my ($self) = @_;
|
||||
my $hold_infos = $self->unblessed;
|
||||
require Koha::Old::Hold;
|
||||
return Koha::Old::Hold->new( $hold_infos )->store;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue