- π©πͺGermany Anybody Porta Westfalica
Please check π Field groups are not copied when cloning display Needs review before touching things further here. Seems there is a bug with a missing variable, breaking the logic.
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]);
}
}
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Please check π Field groups are not copied when cloning display Needs review before touching things further here. Seems there is a bug with a missing variable, breaking the logic.