[Koha-patches] [PATCH] bug 2988: apply correct hold policy
Galen Charlton
galen.charlton at liblime.com
Thu Feb 26 17:42:53 CET 2009
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.
---
misc/cronjobs/holds/build_holds_queue.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/misc/cronjobs/holds/build_holds_queue.pl b/misc/cronjobs/holds/build_holds_queue.pl
index 57e1183..8b48a8f 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')) {
--
1.5.5.GIT
More information about the Koha-patches
mailing list