Commit 1f05a000 authored by shagel's avatar shagel Committed by Nils Destoop
Browse files

Issue #3086818 by shagel: Assigned fieldgroup gets overwitten

parent cef87a5e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -344,9 +344,11 @@ function field_group_form_process(array &$element, FormStateInterface $form_stat
      $element[$group_name]['#parents'] = $parents;
      $group_children_parent_group = implode('][', $parents);
      foreach ($group->children as $child) {
        if (!isset($element[$child]['#group'])) {
          $element[$child]['#group'] = $group_children_parent_group;
        }
      }
    }

    foreach ($element['#fieldgroups'] as $group_name => $group) {
      $field_group_element = &$element[$group_name];