From 6e6b047f4166d268810440e13a08bc1d19bf3d28 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 28 Jun 2022 10:06:57 +0000 Subject: [PATCH] Bug 31058: Bug 17600 follow-up - 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! --- 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.30.2