From 66d2e36fa3624cd69c1bc18f87d4f6dfbcea59d8 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 26 Feb 2009 10:42:53 -0600 Subject: [PATCH] bug 2988: apply correct hold policy Item type was not retrieved in a query, leading to a case where an item could be selected by build_holds_queue.pl to fill a hold request even where forbidden by the library and item type-level policy. Signed-off-by: Galen Charlton --- misc/cronjobs/holds/build_holds_queue.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/holds/build_holds_queue.pl b/misc/cronjobs/holds/build_holds_queue.pl index 57e11830fa..8b48a8fa79 100755 --- a/misc/cronjobs/holds/build_holds_queue.pl +++ b/misc/cronjobs/holds/build_holds_queue.pl @@ -161,7 +161,7 @@ sub GetItemsAvailableToFillHoldRequestsForBib { my @branches_to_use = @_; my $dbh = C4::Context->dbh; - my $items_query = "SELECT itemnumber, homebranch, holdingbranch + my $items_query = "SELECT itemnumber, homebranch, holdingbranch, itemtypes.itemtype AS itype FROM items "; if (C4::Context->preference('item-level_itypes')) { -- 2.39.5