Skip to content

Commit 18a1c90

Browse files
committed
Fixed condition that determines if embedded template needs to be used
1 parent 5af6acd commit 18a1c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/AbstractCrudController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function index(AdminContext $context)
182182

183183
$responseParameters = $this->configureResponseParameters(KeyValueStore::new([
184184
'pageName' => Crud::PAGE_INDEX,
185-
'templateName' => null !== $embedContext ? 'crud/embedded' : 'crud/index',
185+
'templateName' => array_key_exists('mappedBy', $embedContext) ? 'crud/embedded' : 'crud/index',
186186
'entities' => $entities,
187187
'paginator' => $paginator,
188188
'global_actions' => $actions->getGlobalActions(),

0 commit comments

Comments
 (0)