From b7952ce62a8b037c8206c821b2db1f2bb4c44fd3 Mon Sep 17 00:00:00 2001 From: AUDUL <97884272+AUDUL@users.noreply.github.com> Date: Thu, 13 Jul 2023 11:18:59 +0200 Subject: [PATCH 1/3] NovaSeoBundle add form order --- .../SEOBundle/bundle/Core/FieldType/Metas/FormMapper.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/SEOBundle/bundle/Core/FieldType/Metas/FormMapper.php b/components/SEOBundle/bundle/Core/FieldType/Metas/FormMapper.php index 203cc8735..ea4c49cee 100644 --- a/components/SEOBundle/bundle/Core/FieldType/Metas/FormMapper.php +++ b/components/SEOBundle/bundle/Core/FieldType/Metas/FormMapper.php @@ -107,6 +107,9 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) unset($data->value->metas[$key]); } } + + // order form from configuration order + $data->value->metas = array_merge(array_flip(array_keys($metasConfig)), $data->value->metas); $fieldForm ->add( From d4e4521e552cc2169c309fcc4cb0d234f91a44b2 Mon Sep 17 00:00:00 2001 From: AUDUL <97884272+AUDUL@users.noreply.github.com> Date: Thu, 13 Jul 2023 11:22:15 +0200 Subject: [PATCH 2/3] Update CHANGELOG.md --- components/SEOBundle/documentation/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/SEOBundle/documentation/CHANGELOG.md b/components/SEOBundle/documentation/CHANGELOG.md index 6615b670b..9536f7b6a 100644 --- a/components/SEOBundle/documentation/CHANGELOG.md +++ b/components/SEOBundle/documentation/CHANGELOG.md @@ -2,6 +2,10 @@ # Changelog +## 7.0.2 + +* Add form order from configuration + ## 7.0.1 * Fix siteaccess aware for multisite From c9a4f21e11f271afa8c25cc9718daa1b731ae3a4 Mon Sep 17 00:00:00 2001 From: AUDUL <97884272+AUDUL@users.noreply.github.com> Date: Fri, 1 Sep 2023 10:07:55 +0200 Subject: [PATCH 3/3] Fix CI --- components/SEOBundle/bundle/Core/FieldType/Metas/FormMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/SEOBundle/bundle/Core/FieldType/Metas/FormMapper.php b/components/SEOBundle/bundle/Core/FieldType/Metas/FormMapper.php index ea4c49cee..5f50e0938 100644 --- a/components/SEOBundle/bundle/Core/FieldType/Metas/FormMapper.php +++ b/components/SEOBundle/bundle/Core/FieldType/Metas/FormMapper.php @@ -107,7 +107,7 @@ public function mapFieldValueForm(FormInterface $fieldForm, FieldData $data) unset($data->value->metas[$key]); } } - + // order form from configuration order $data->value->metas = array_merge(array_flip(array_keys($metasConfig)), $data->value->metas);