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)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 25 Mar 2022 13:26:13 +0000 (09:26 -0400)
commit78eff9c7424f502d2e41410dff7d5673988b9b03
tree1f5ca94fc144590c77d8e27e0c537402251ad0dc
parent6c49c489d6d8ad9dd8e3e02d9d623895f79d3607
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