Skip to content

Commit

Permalink
Issue #2814: Fix value set for base entities in DFSet context.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven committed Jan 15, 2024
1 parent e2a79e7 commit 4030748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Kernel/System/DynamicField/Driver/BaseEntity.pm
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,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{Set} )
? $Param{Value}
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 4030748

Please sign in to comment.