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',