From 6d206b8ab177bd1da278f3fd8d7f0e4351a5ce9c 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 (cherry picked from commit d5cb77532ebbe01632f7f27046a2e86a03eac36b) Signed-off-by: Lucas Gass (cherry picked from commit 5b5aa52547443361238f42041f7c17874a8a28bf) Signed-off-by: Fridolin Somers --- 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