From fce49162358e371c61f0086cd8a9e37d5d7550b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20H=C3=A4rter?= Date: Tue, 26 Sep 2023 19:19:01 +0200 Subject: [PATCH] Small changes to dynamic field add command. --- Kernel/System/Console/Command/Admin/DynamicField/Add.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/System/Console/Command/Admin/DynamicField/Add.pm b/Kernel/System/Console/Command/Admin/DynamicField/Add.pm index 6cb1756..0206ee6 100644 --- a/Kernel/System/Console/Command/Admin/DynamicField/Add.pm +++ b/Kernel/System/Console/Command/Admin/DynamicField/Add.pm @@ -94,14 +94,14 @@ sub Configure { Description => 'Whether to reorder other fields if an occupied order number is chosen. Defaults to 1.', Required => 0, HasValue => 1, - ValueRegex => qr/\d/smx, + ValueRegex => qr/^[[0-1]{1}$/smx, ); $Self->AddOption( Name => 'valid', Description => 'Whether the field to add is valid or invalid. Defaults to 1.', Required => 0, HasValue => 1, - ValueRegex => qr/\d/smx, + ValueRegex => qr/^[0-1]{1}$/smx, ); $Self->AddOption( Name => 'stdin',