Bug 35959: Fix C3 merge of Koha::Old::Hold (part 2)

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 5f07b8ed52)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Julian Maurice 2024-07-03 10:58:46 +02:00 committed by Lucas Gass
parent 841009d50c
commit 109cb6a13d
1 changed files with 1 additions and 0 deletions

View File

@ -1609,6 +1609,7 @@ Return all the historical holds for this patron
sub old_holds {
my ($self) = @_;
my $old_holds_rs = $self->_result->old_reserves->search( {}, { order_by => 'reservedate' } );
require Koha::Old::Holds;
return Koha::Old::Holds->_new_from_dbic($old_holds_rs);
}