From 3188d9eed02eee6f58bd8174b35d6323daae7883 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 (cherry picked from commit 6c315c164dbcf3e05fcfe4a3110b824ab3ac162c) Signed-off-by: Lucas Gass (cherry picked from commit 1e8abd735991190d7124a9630b0bda53cec7840a) Signed-off-by: Arthur Suzuki --- 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 fdaa350159..2403523aed 100755 --- a/misc/cronjobs/holds/auto_unsuspend_holds.pl +++ b/misc/cronjobs/holds/auto_unsuspend_holds.pl @@ -30,7 +30,7 @@ BEGIN { # 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