From 5e8b078651624cee7bc4f86e206cf36c8ace9c4d Mon Sep 17 00:00:00 2001 From: Ian Walls Date: Tue, 30 Nov 2010 02:19:49 -0500 Subject: [PATCH] Bug 4449: AllowHoldPolicyOverride does not override all hold policies This patch provides a universal override to any hold policy if the AllowHoldPolicyOverride is set. Amongst other overrides, this patch allows missing, non-checked out items to be placed on hold even with AllowShelfHolds turned off. Signed-off-by: Nicole Engard Signed-off-by: Chris Cormack --- reserve/request.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reserve/request.pl b/reserve/request.pl index 859a65b537..7e513648eb 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -435,6 +435,9 @@ foreach my $biblionumber (@biblionumbers) { $item->{available} = 1; $num_available++; } + } elsif (C4::Context->preference( 'AllowHoldPolicyOverride' ) ) { + $item->{override} = 1; + $num_override++; } # If none of the conditions hold true, then neither override nor available is set and the item cannot be checked -- 2.39.5