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:
parent
15f622ecc1
commit
4676ce1a03
1 changed files with 2 additions and 0 deletions
|
@ -2959,6 +2959,8 @@ sub CanBookBeRenewed {
|
||||||
notforloan => 0,
|
notforloan => 0,
|
||||||
-not => { itemnumber => $itemnumber } })->as_list;
|
-not => { itemnumber => $itemnumber } })->as_list;
|
||||||
|
|
||||||
|
return ( 0, "on_reserve" ) if scalar @other_items < scalar @possible_holds;
|
||||||
|
|
||||||
my %matched_items;
|
my %matched_items;
|
||||||
foreach my $possible_hold (@possible_holds) {
|
foreach my $possible_hold (@possible_holds) {
|
||||||
my $fillable = 0;
|
my $fillable = 0;
|
||||||
|
|
Loading…
Reference in a new issue