From bb3250260742b15e840774ac77d9086b5c4b3ea7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 17 Sep 2015 09:03:59 +0100 Subject: [PATCH] Bug 14842: Wrong call to GetBranchItemRule From bug 7981: GetBranchItemRule expects an itemtype, a scalar. Here $itemtype is a hashref returned by C4::ItemType->get. So $itemtype->{itemtype} should be passed. Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- circ/returns.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index ec0679f8be..637f4b2d99 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -276,7 +276,7 @@ if ($barcode) { } # make sure return branch respects home branch circulation rules, default to homebranch - my $hbr = GetBranchItemRule($biblio->{'homebranch'}, $itemtype)->{'returnbranch'} || "homebranch"; + my $hbr = GetBranchItemRule($biblio->{'homebranch'}, $itemtype->{itemtype})->{'returnbranch'} || "homebranch"; my $returnbranch = $biblio->{$hbr} ; $template->param( -- 2.39.5