Skip to content

Commit

Permalink
Issue #2814: Added necessary value mapping for single value sets.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Jan 12, 2024
1 parent 3cbfff4 commit ca57d7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Kernel/System/DynamicField/Driver/BaseEntity.pm
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ sub ValueSet {
# in MultiValue and Set case, the value is needed as array ref for creating the value structure correctly
my $Value = $Param{DynamicFieldConfig}{Config}{MultiValue}
? $Param{Value}
: $Param{Set}
? [ map { $_->[0] } $Param{Value}->@* ]
: $Param{Value}->[0];

my $DBValue = $Self->ValueStructureToDB(
Expand Down

0 comments on commit ca57d7a

Please sign in to comment.