Skip to content

Commit

Permalink
Issue #2630: Prevent using an undefined value for EditFieldMode when …
Browse files Browse the repository at this point in the history
…adding a new df reference field.
  • Loading branch information
stefanhaerter committed Nov 10, 2023
1 parent ceaf91f commit 1899e35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Kernel/Modules/AdminDynamicFieldReference.pm
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ sub _ShowScreen {
);

# compute value for editfieldmode to maintain frontend selection
$Param{EditFieldMode} //= '';
$Param{EditFieldMode} = $Param{EditFieldMode} eq 'AutoComplete' ? 'AutoComplete' : ( $Param{Multiselect} ? 'Multiselect' : 'Dropdown' );

# Selections may be set up in a declaritive way
Expand Down

0 comments on commit 1899e35

Please sign in to comment.