Skip to content

Commit

Permalink
Issue #2827: Added todo comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Jan 15, 2024
1 parent 5e9fbcd commit 254b152
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Kernel/System/DynamicField/Driver/BaseScript.pm
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ sub ValueValidate {
# get dynamic field value object
my $DynamicFieldValueObject = $Kernel::OM->Get('Kernel::System::DynamicFieldValue');

# TODO Decide on further details of script regex evaluation
my $CheckRegex = 1;
if (
!IsArrayRefWithData( $Param{DynamicFieldConfig}->{Config}->{RegExList} )
Expand Down Expand Up @@ -430,6 +431,8 @@ sub EditFieldValueValidate {
if ( $Param{Mandatory} && $ValueItem eq '' ) {
$ServerError = 1;
}

# TODO Decide on further details of script regex evaluation
elsif (
IsArrayRefWithData( $Param{DynamicFieldConfig}->{Config}->{RegExList} )
&& ( $Param{Mandatory} || ( !$Param{Mandatory} && $ValueItem ne '' ) )
Expand Down

0 comments on commit 254b152

Please sign in to comment.