From d5cb77532ebbe01632f7f27046a2e86a03eac36b Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 16 Feb 2024 09:31:27 +0100 Subject: [PATCH] Bug 34077: Allow to use --category-code as the only filter option --category-code was not checked in the "at least one filter option" check but it is clearly a filter option. Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- misc/cronjobs/writeoff_debts.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/writeoff_debts.pl b/misc/cronjobs/writeoff_debts.pl index ede37ba900..ec990c41a3 100755 --- a/misc/cronjobs/writeoff_debts.pl +++ b/misc/cronjobs/writeoff_debts.pl @@ -32,7 +32,7 @@ if ( !$confirm && !$verbose ) { @type = split( /,/, join( ',', @type ) ); -if ( !$file && !@type && !$before && !$after ) { +if ( !$file && !@type && !$before && !$after && !@category_code ) { say STDERR "Missing required filter option: at least one filter option should be used"; pod2usage(2); } -- 2.39.5