Bug 31112: (QA follow-up) Restore check to avoid extra processing

We now count all holds for all patrons, we can still eject if we have more
holds than we do items

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2022-08-19 13:11:09 +00:00 committed by Tomas Cohen Arazi
parent 15f622ecc1
commit 4676ce1a03
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -2959,6 +2959,8 @@ sub CanBookBeRenewed {
notforloan => 0,
-not => { itemnumber => $itemnumber } })->as_list;
return ( 0, "on_reserve" ) if scalar @other_items < scalar @possible_holds;
my %matched_items;
foreach my $possible_hold (@possible_holds) {
my $fillable = 0;