Bug 25786: AddReserve now takes a hashref

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 7b54b52907)
This commit is contained in:
Jonathan Druart 2020-06-18 15:13:25 +02:00
parent c6a1277fdb
commit e656d9d7c5
1 changed files with 10 additions and 2 deletions

View File

@ -1145,8 +1145,16 @@ subtest "Test Local Holds Priority - Get correct item for item level hold" => su
);
my $reserve_id2 =
AddReserve( $item2->homebranch, $local_patron->borrowernumber,
$biblio->biblionumber, '', 2, undef, undef, undef, undef, $item2->id, undef, undef );
AddReserve(
{
branchcode => $item2->homebranch,
borrowernumber => $local_patron->borrowernumber,
biblionumber => $biblio->biblionumber,
priority => 2,
itemnumber => $item2->id,
}
);
C4::HoldsQueue::CreateQueue();