From 9fc9f84b8d2ea4bc49bd8906ac89589243f9a494 Mon Sep 17 00:00:00 2001 From: John Doe Date: Wed, 5 Aug 2026 15:25:15 +0000 Subject: [PATCH] Bug 28740: (follow-up) Add missing C4::Log import for cronlogaction The patch added cronlogaction() calls but did not import the function. This caused a runtime error: Undefined subroutine &main::cronlogaction. Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ perl misc/cronjobs/cleanup_database.pl --illrequests-days 30 \ --illrequests-status COMP -v => SUCCESS: Dry-run works, reports count of requests that would be removed 3. Run with --confirm to actually purge 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi Signed-off-by: Pedro Amorim --- misc/cronjobs/cleanup_database.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/cronjobs/cleanup_database.pl b/misc/cronjobs/cleanup_database.pl index c75a6820fb..4a227d3b22 100755 --- a/misc/cronjobs/cleanup_database.pl +++ b/misc/cronjobs/cleanup_database.pl @@ -41,6 +41,7 @@ use Koha::Script -cron; use C4::Accounts qw( purge_zero_balance_fees ); use C4::Context; +use C4::Log qw( cronlogaction ); use C4::Search::History; use C4::Search; use Koha::BackgroundJobs;