When field_group is enabled, all fields are removed from clone process

Created on 14 December 2019, over 4 years ago
Updated 28 May 2024, about 1 month ago

First of all - thank you for this module! I have 15 bundles with a lot of fields and I * DO NOT WANT * to manually do this for form display, so this is saving me some time - thank you!

To reproduce, enable field_group and configure a bundle with groups, then try to clone the form display to another bundle - nothing happens and you're given the message that the display was cloned.

The following code uses an array that is never set, $destination_bundle_field_names. As a result, all of the fields are removed from the $group_settings. If *all* of your fields are in groups, like mine, you end up with nothing being cloned.

  foreach ($group_settings['children'] as $index => $child_field) {
    if (!isset($destination_bundle_field_names[$child_field])) {
      unset($group_settings['children'][$index]);
    }
  }
πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States chrisrockwell

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024