Bug 30155: Don't get items that can fillholds if there are no holds
authorNick Clemens <nick@bywatersolutions.com>
Tue, 22 Feb 2022 16:54:03 +0000 (16:54 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 16 Mar 2022 08:30:50 +0000 (22:30 -1000)
commitc6ffb44bf1d2cdc3b018dc263ded31d44bd0d404
tree67af4df088c0cb3d082b1a2761dec2c8f9db046a
parent4153eff65916b4bdb8e0b69603e30621297c2ede
Bug 30155: Don't get items that can fillholds if there are no holds

This makes two changes:
1 - We no longer call get_items_that_can_fill if there are no holds
2 - The subroutine will return an empty Koha::Items object if there are no holds passed

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Holds.pm
circ/pendingreserves.pl
t/db_dependent/Koha/Holds.t