Skip to content

Commit

Permalink
Fixed condition that determines if embedded template needs to be used
Browse files Browse the repository at this point in the history
  • Loading branch information
psihius committed Oct 3, 2024
1 parent 5af6acd commit 18a1c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/AbstractCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function index(AdminContext $context)

$responseParameters = $this->configureResponseParameters(KeyValueStore::new([
'pageName' => Crud::PAGE_INDEX,
'templateName' => null !== $embedContext ? 'crud/embedded' : 'crud/index',
'templateName' => array_key_exists('mappedBy', $embedContext) ? 'crud/embedded' : 'crud/index',
'entities' => $entities,
'paginator' => $paginator,
'global_actions' => $actions->getGlobalActions(),
Expand Down

0 comments on commit 18a1c90

Please sign in to comment.