From 6c315c164dbcf3e05fcfe4a3110b824ab3ac162c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 28 Jun 2022 10:06:57 +0000 Subject: [PATCH] Bug 31058: Fix import AutoUnsuspendHolds This patch corrects missing import To test: 1 - perl misc/cronjobs/holds/auto_unsuspend_holds.pl 2 - It dies Undefined subroutine &main::AutoUnsuspendReserves called at misc/cronjobs/holds/auto_unsuspend_holds.pl line 38. 3 - Apply patch 4 - run again 5 - It succeeds! Signed-off-by: Tomas Cohen Arazi --- misc/cronjobs/holds/auto_unsuspend_holds.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/holds/auto_unsuspend_holds.pl b/misc/cronjobs/holds/auto_unsuspend_holds.pl index a0b3724c98..9db2b626fa 100755 --- a/misc/cronjobs/holds/auto_unsuspend_holds.pl +++ b/misc/cronjobs/holds/auto_unsuspend_holds.pl @@ -23,7 +23,7 @@ use warnings; # cancel all expired hold requests use Koha::Script -cron; -use C4::Reserves; +use C4::Reserves qw(AutoUnsuspendReserves); use C4::Log qw( cronlogaction ); cronlogaction(); -- 2.39.5