From bug 7981: circ/returns.pl around l. 276 my $hbr = GetBranchItemRule($biblio->{'homebranch'}, $itemtype)->{'returnbranch'} || "homebranch"; GetBranchItemRule expects an itemtype, a scalar. Here $itemtype is a hashref returned by C4::ItemType->get. This must be blocker for the next release.
Created attachment 42637 [details] [review] 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.
Created attachment 42803 [details] [review] 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 <m.de.rooy@rijksmuseum.nl>
Hi Jonathan or Marcel - can you please add a test plan to this?
If I remember correctly you must use an itemtype with a return policy. Whatever the value of the policy, the return branch will always be the homebranch.
Created attachment 43035 [details] [review] [PASSED QA] 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 <m.de.rooy@rijksmuseum.nl> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Patch pushed to master. Thanks Jonathan!