From 837a6777709b7350b68a6e319eea8d17a94f4063 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 24 Apr 2020 11:25:43 +0200 Subject: [PATCH] Bug 24769: (bug 14711 follow-up) Fix typo in parameter name for AddReserve The parameter is branchcode, not branch. Test plan: Place a hold on a biblio using ILSDI Check that the branchcode is correctly filled with the patron's library Signed-off-by: David Nind --- C4/ILSDI/Services.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index e929b37d91..5ebba3435d 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -756,7 +756,7 @@ sub HoldTitle { my $priority= C4::Reserves::CalculatePriority( $biblionumber ); AddReserve( { - branch => $branch, + branchcode => $branch, borrowernumber => $borrowernumber, biblionumber => $biblionumber, priority => $priority, @@ -852,7 +852,7 @@ sub HoldItem { my $priority = C4::Reserves::CalculatePriority($biblionumber); AddReserve( { - branch => $branch, + branchcode => $branch, borrowernumber => $borrowernumber, biblionumber => $biblionumber, priority => $priority, -- 2.11.0