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 <tomascohen@theke.io>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
5ebc4d79a1
commit
9fc9f84b8d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue