Skip to content

Commit f66d154

Browse files
ViniTouŁukasz Serwatka
authored andcommitted
EZP-29528: Content edit view is unstyled when multiple admin siteaccesses are configured (#616)
1 parent 092a104 commit f66d154

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

src/bundle/DependencyInjection/Configuration/Parser/AdminUiForms.php

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,28 @@ public function mapConfig(
6161
$currentScope,
6262
ContextualizerInterface $contextualizer
6363
): void {
64+
if (!empty($scopeSettings['admin_ui_forms']['content_edit_form_templates'])) {
65+
$scopeSettings['admin_ui_forms.content_edit_form_templates'] = $this->processContentEditFormTemplates(
66+
$scopeSettings['admin_ui_forms']['content_edit_form_templates']
67+
);
68+
unset($scopeSettings['admin_ui_forms']['content_edit_form_templates']);
69+
}
70+
6471
$contextualizer->setContextualParameter(
6572
static::FORM_TEMPLATES_PARAM,
6673
$currentScope,
67-
$this->processContentEditFormTemplates(
68-
$scopeSettings['admin_ui_forms']['content_edit_form_templates'] ?? []
69-
)
74+
$scopeSettings['admin_ui_forms.content_edit_form_templates'] ?? []
7075
);
7176
}
7277

78+
/**
79+
* {@inheritdoc}
80+
*/
81+
public function postMap(array $config, ContextualizerInterface $contextualizer)
82+
{
83+
$contextualizer->mapConfigArray('admin_ui_forms.content_edit_form_templates', $config);
84+
}
85+
7386
/**
7487
* Processes given prioritized list of templates, sorts them according to their priorities and
7588
* returns as a simple list of templates.

0 commit comments

Comments
 (0)