Commit a0b7ec69 authored by Kristof De Jaeger's avatar Kristof De Jaeger
Browse files

Issue #3059614 by Raghavendra B M, attheshow, nikitagupta, Andrew Answer,...

Issue #3059614 by Raghavendra B M, attheshow, nikitagupta, Andrew Answer, jibran, sharif.elshobkshy, elfakhar: Undefined property: stdClass::$region in field_group_form_process()
parent cdd98065
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -76,7 +76,14 @@ class FormatterHelper implements TrustedCallbackInterface {
        }

        $group_parents = $element['#array_parents'];
        $group_parents[] = empty($group->parent_name) ? $group->region : $group->parent_name;
        if (empty($group->parent_name)) {
          if (isset($group->region)) {
            $group_parents[] = $group->region;
          }
        }
        else {
          $group_parents[] = $group->parent_name;
        }
        $group_references[$group_name] = &$element[$group_name];
        $element[$group_name]['#group'] = implode('][', $group_parents);