Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit fc57e08

Browse files
committed
Set the request in the parent admin when building breadcrumbs
I'm currently working on a PR (here)[sonata-project/SonataAdminBundle#3258] and the missing request in the admin causes an issue. This PR simply set the request in the admin.
1 parent 0de2f06 commit fc57e08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Admin/MenuNodeAdmin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function buildBreadcrumbs($action, MenuItemInterface $menu = null)
6060
}
6161

6262
$parentAdmin->setSubject($parentDoc);
63+
$parentAdmin->setRequest($this->request);
6364
$parentEditNode = $parentAdmin->buildBreadcrumbs($action, $menu);
6465
if ($parentAdmin->isGranted('EDIT' && $parentAdmin->hasRoute('edit'))) {
6566
$parentEditNode->setUri(

0 commit comments

Comments
 (0)