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 <galen.charlton@liblime.com>
This commit is contained in:
parent
1c9e6f16e7
commit
66d2e36fa3
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue