From f7cdfd1c8dc1112f6769fcaff35067be109e7ba3 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. --- 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 5ac7ca89fc1..5fa93f790be 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.30.2