Skip to content

Commit

Permalink
Fixed migrated field readonly settings to respect display mode settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jul 17, 2024
1 parent 6b26c5f commit 2764a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stanford_migrate.module
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function stanford_migrate_entity_form_display_alter(EntityFormDisplayInterface $
// readonly_field_widget module will use some default display settings.
if ($display_component = $default_display->getComponent($field_name)) {
$component['settings']['formatter_type'] = $display_component['type'];
$component['settings']['formatter_settings'] = $display_component['settings'];
$component['settings']['formatter_settings'][$display_component['type']] = $display_component['settings'];
$component['settings']['formatter_third_party_settings'] = $display_component['third_party_settings'] ?? [];

// Add the empty fields module settings to display a message.
Expand Down

0 comments on commit 2764a2d

Please sign in to comment.