Bug 29076: Fetch the zebraqueue entries when not confirm
authorNick Clemens <nick@bywatersolutions.com>
Wed, 22 Sep 2021 12:02:43 +0000 (12:02 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 9 Oct 2021 02:18:12 +0000 (16:18 -1000)
commit5dc1e731435843a9a1822db70f06d0c3955db6c0
tree7a282093965632f89b68b068de8ee9a45931d6f7
parentfa84d0704f85381cd7026d1c51cb832ade4ca870
Bug 29076: Fetch the zebraqueue entries when not confirm

This patch remove a check for confirm when fetching the entries
for possible deletion from the zebraqueue

Without this we die when we try to access the entries for counting

To test:
1 - perl  misc/cronjobs/cleanup_database.pl --sessions --zebraqueue 10 --list-invites --z3950 --logs 180 --mail 375 -v
2 - Dies
3 - Apply patch
4 - Repeat 1
5 - Success!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 619e60fd55fefedaea96113525373094c426c880)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/cronjobs/cleanup_database.pl