From 5b1923f9a0d67db8dbec88cdc143338e2e2560f5 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 11 Apr 2022 17:06:46 +0100 Subject: [PATCH] Bug 29346: (follow-up) Fix import issue in HoldsQueue For some reason `t/db_dependent/HoldsQueue..t` starts failing for me without this patch.. using the full module path resolves the issue but I'd love to understand why/how this creeps in. Signed-off-by: Tomas Cohen Arazi --- C4/HoldsQueue.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/HoldsQueue.pm b/C4/HoldsQueue.pm index 7073760881f..5a942f847b7 100644 --- a/C4/HoldsQueue.pm +++ b/C4/HoldsQueue.pm @@ -349,9 +349,9 @@ sub GetItemsAvailableToFillHoldRequestsForBib { $sth->execute(@params); my $itm = $sth->fetchall_arrayref({}); - my @items = grep { ! scalar GetTransfers($_->{itemnumber}) } @$itm; + my @items = grep { ! scalar C4::Circulation::GetTransfers($_->{itemnumber}) } @$itm; return [ grep { - my $rule = GetBranchItemRule($_->{homebranch}, $_->{itype}); + my $rule = C4::Circulation::GetBranchItemRule($_->{homebranch}, $_->{itype}); $_->{holdallowed} = $rule->{holdallowed}; $_->{hold_fulfillment_policy} = $rule->{hold_fulfillment_policy}; } @items ]; -- 2.36.0