From 20b7821d82cf0197a5057253d81cd8458a018d5b Mon Sep 17 00:00:00 2001 From: Taku-Yamashita Date: Wed, 28 Aug 2019 15:13:17 +0900 Subject: [PATCH] Added array keys to components --- .../Plugin/Ui/View/Element/PartiallyConfiguredUiComponent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }