Skip to content

Commit

Permalink
Issue #2298: Disable referenced object type dropdown in admin dynamic…
Browse files Browse the repository at this point in the history
… field reference.
  • Loading branch information
stefanhaerter committed Oct 20, 2023
1 parent 4780fad commit da3d2df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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 @@ -771,6 +771,7 @@ sub _ShowScreen {
SelectedID => $Param{$Name} || '0',
Class => 'Modernize W50pc' . ( $Setting->{Mandatory} ? ' Validate_Required' : '' ),
Multiple => ( $Setting->{Multiple} // 0 ),
Disabled => ( $Setting->{Disabled} // 0 ),
);
$LayoutObject->Block(
Name => 'ConfigParamRow',
Expand Down
1 change: 1 addition & 0 deletions Kernel/System/DynamicField/Driver/Reference.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ sub GetFieldTypeSettings {
SelectionData => { $ReferencedObjectType => $ReferencedObjectType },
PossibleNone => 0,
Mandatory => 1,
Disabled => 1,
};
}

Expand Down

0 comments on commit da3d2df

Please sign in to comment.