The extra fields are not cloned correctly.

Created on 5 June 2024, 7 months ago

Problem/Motivation

The extra fields are not being cloned correctly, they are not located in their correct regions (content, hidden).

Steps to reproduce

  • Create extra fields with the hook, hook_entity_extra_field_info for NodeType in form display.
  • Mark the extra fields visible=FALSE.
  • Set visibility to visible throughth of UI.
  • Clone the entity entity type.
  • Check out the extra fields must be visible (content) and appear hidden (hidden).
    $extra['node'][$bundle->id()]['display']['my_extra_field'] = [
      'label' => t('Extra field label'),
      'visible' => FALSE,
      'weight' => 5,
    ];

Proposed resolution

Adjust, create MR or patch.

💬 Support request
Status

Needs review

Version

4.0

Component

Code

Created by

🇪🇨Ecuador dmezquia UTC-5

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024