From c85d6f257fb916b8e725062897397768d5b6cd14 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 19 Jun 2020 07:59:50 +0000 Subject: [PATCH] Bug 24152: (QA follow-up) Add tests for alternative from and to pars Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- misc/cronjobs/cleanup_database.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/misc/cronjobs/cleanup_database.pl b/misc/cronjobs/cleanup_database.pl index c78a4027e0..891366c70d 100755 --- a/misc/cronjobs/cleanup_database.pl +++ b/misc/cronjobs/cleanup_database.pl @@ -209,6 +209,8 @@ unless ( $sessions || $pOldReserves || $pTransfers || defined $pPseudoTransactions + || $pPseudoTransactionsFrom + || $pPseudoTransactionsTo ) { print "You did not specify any cleanup work for the script to do.\n\n"; usage(1); @@ -456,8 +458,8 @@ if ($pTransfers) { print "Done with purging transfers.\n" if $verbose; } -if (defined $pPseudoTransactions) { - print "Purging pseudonymized transactions older than $pPseudoTransactions days.\n" if $verbose; +if (defined $pPseudoTransactions or $pPseudoTransactionsFrom or $pPseudoTransactionsTo ) { + print "Purging pseudonymized transactions\n" if $verbose; Koha::PseudonymizedTransactions->filter_by_last_update( { timestamp_column_name => 'datetime', -- 2.39.5