From 6d5caac0301ea3e7114f1241f8fa9c3addc9555f Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 15 Nov 2022 16:54:47 +0000 Subject: [PATCH] Bug 32093: Make help and code match for bg-days in cleanup_database.pl There as a mismatch between the parameter name in documentation (bg-days) and what was checked in the code (bg-jobs). This makes both match. To test: * Apply patch * Make sure you have some background_jobs older than one day * Verify the help of the script documents the parameter bg-days * Run the cleanup_database.pl job Example: ./misc/cronjobs/cleanup_database.pl --bg-days --confirm -v * Verify there are no errors and the lines have been deleted as expected --- misc/cronjobs/cleanup_database.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/cronjobs/cleanup_database.pl b/misc/cronjobs/cleanup_database.pl index aff16f987b..96783c159f 100755 --- a/misc/cronjobs/cleanup_database.pl +++ b/misc/cronjobs/cleanup_database.pl @@ -52,7 +52,7 @@ use Koha::Patron::Debarments qw( DelDebarment ); sub usage { print STDERR < \$cards, 'return-claims' => \$return_claims, 'bg-type:s' => \@background_types, - 'bg-jobs:i' => \$background_days, + 'bg-days:i' => \$background_days, ) || usage(1); # Use default values -- 2.30.2