diff --git a/JapaneseAddress/Plugin/Ui/View/Element/PartiallyConfiguredUiComponent.php b/JapaneseAddress/Plugin/Ui/View/Element/PartiallyConfiguredUiComponent.php index 7516cd44d..7c7b15cd4 100644 --- a/JapaneseAddress/Plugin/Ui/View/Element/PartiallyConfiguredUiComponent.php +++ b/JapaneseAddress/Plugin/Ui/View/Element/PartiallyConfiguredUiComponent.php @@ -32,11 +32,11 @@ class PartiallyConfiguredUiComponent public function afterGetChildComponents(UiComponentInterface $component, array $children) { $configuredChildren = []; - foreach ($children as $child) { + foreach ($children as $key => $child) { if ($child instanceof Field && null === $child->getData('config/formElement')) { continue; } - $configuredChildren[] = $child; + $configuredChildren[$key] = $child; } return $configuredChildren; }