]> git.koha-community.org Git - koha.git/commit
Bug 28510: Skip processing holds queue items from closed libraries when HoldsQueueSki...
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 3 Jun 2021 10:44:59 +0000 (06:44 -0400)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 21 Oct 2021 03:08:48 +0000 (17:08 -1000)
commit27f444ef118ff114364bd5e8f5b49386a8d60026
tree1fa756eb123a4d95dd2c887be8aea6332ab9c48d
parenta4ed8897f6f4b50cd64e2a226c4de458fee23f7c
Bug 28510: Skip processing holds queue items from closed libraries when HoldsQueueSkipClosed is enabled

Right now we skip closed branch's items as we iterate over all items looking for ones to fill a hold. If HoldsQueueSkipClosed is enabled, no items held be a closed library can be targeted, so it would be more efficient if we never selected the items from those branches to begin with. This is how the holds queue works if we are not using the transport cost matrix, so we should make it work the same way if we *are* using the matrix.

Test Plan:
1) Apply this patch
2) prove prove t/db_dependent/HoldsQueue.t
3) All tests should continue to pass

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 4b825ce3a53d7fceedd4118554c91eaf9e360793)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/HoldsQueue.pm