@@ -, +, @@ --- C4/Circulation.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -461,7 +461,8 @@ sub TooMany { if (C4::Context->preference('item-level_itypes')) { $count_query .= " WHERE items.itype NOT IN ( $issuing_itemtypes_query )"; } else { - $count_query .= " WHERE biblioitems.itemtype NOT IN ( $issuing_itemtypes_query )"; + $count_query .= " JOIN biblioitems USING (biblionumber) + WHERE biblioitems.itemtype NOT IN ( $issuing_itemtypes_query )"; } push @bind_params, $maxissueqty_rule->branchcode; push @bind_params, $maxissueqty_rule->categorycode; --