Trying to configure a field group gives an ajax error, never opens settings

Created on 17 February 2021, almost 4 years ago
Updated 16 July 2024, 4 months ago

Problem/Motivation

I want to be able to edit an html element and link field groups. I need to be able to change the settings, customize classes, etc. Also this means that

Steps to reproduce

Go to a paragraph's display settings. Create 4 levels of html element groups with some fields inside. Save, try to click the gear to configure/edit an html element. It pops up an ajax error:

And it never opens up to allow editing the settings.

Proposed resolution

We did discover this similar issue with the bootstrap field group module:
https://www.drupal.org/project/bootstrap_fieldgroup/issues/3191992 β†’
And when we made that change in the field_group module locally as shown here, it fixed the issue:

diff --git a/sites/all/modules/field_group/field_group.module b/sites/all/modules/field_group/field_group.module
index 4fe2547..9884d69 100644
--- a/sites/all/modules/field_group/field_group.module
+++ b/sites/all/modules/field_group/field_group.module
@@ -448,10 +448,7 @@ function field_group_field_group_formatter_info() {
function field_group_field_group_format_settings($group) {
// Add a wrapper for extra settings to use by others.
$form = array(
- 'instance_settings' => array(
- '#tree' => TRUE,
- '#weight' => 2,
- ),
+ 'instance_settings' => array(),
);

$field_group_types = field_group_formatter_info();

Remaining tasks

Need to determine if there is a downside or a better fix to this issue.

πŸ› Bug report
Status

Closed: won't fix

Version

1.6

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States katrialesser

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.71.5 2024