Skip to content

Commit

Permalink
Issue #3483: Allow empty date values.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Jun 19, 2024
1 parent 66fee22 commit 16e1cf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Kernel/System/DynamicField/Driver/BaseDateTime.pm
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,8 @@ sub EditFieldValueValidate {
# on normal basis Used field could be empty but if there was no value from EditFieldValueGet()
# it must be an error
if ( !defined $Value ) {
return {
ServerError => 1,
ErrorMessage => 'Invalid Date!'
$Value = {
Used => 0,
};
}

Expand Down
5 changes: 2 additions & 3 deletions Kernel/System/DynamicField/Driver/Date.pm
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,8 @@ sub EditFieldValueValidate {
# on normal basis Used field could be empty but if there was no value from EditFieldValueGet()
# it must be an error
if ( !defined $Value ) {
return {
ServerError => 1,
ErrorMessage => 'Invalid Date!'
$Value = {
Used => 0,
};
}

Expand Down

0 comments on commit 16e1cf5

Please sign in to comment.