Skip to content

Commit

Permalink
Fix mapping layout to a specific resource
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkrz committed Jul 19, 2024
1 parent d8edcbf commit 403e051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private function getCurrentProductId(?Request $request): ?int
return null;
}

$product = $request->attributes->get('nglayouts_sylius_product');
$product = $request->attributes->get('nglayouts_sylius_resource');

if (!$product instanceof ProductInterface) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private function getCurrentTaxonId(?Request $request): ?int
return null;
}

$taxon = $request->attributes->get('nglayouts_sylius_taxon');
$taxon = $request->attributes->get('nglayouts_sylius_resource');

if (!$taxon instanceof TaxonInterface) {
return null;
Expand Down

0 comments on commit 403e051

Please sign in to comment.