Skip to content

Commit

Permalink
fixup! EZP-30918: Added action to render relation view
Browse files Browse the repository at this point in the history
  • Loading branch information
mikadamczyk committed Nov 20, 2019
1 parent ce6e1cb commit 25d34c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bundle/Controller/ContentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,6 @@ public function relationViewAction(int $contentId): Response
{
try {
$content = $this->contentService->loadContent($contentId);
$contentType = $this->contentTypeService->loadContentType($content->contentInfo->contentTypeId);
} catch (UnauthorizedException $exception) {
return $this->render('@ezdesign/content/relation_unauthorized.html.twig', [
'contentId' => $contentId,
Expand All @@ -546,7 +545,7 @@ public function relationViewAction(int $contentId): Response

return $this->render('@ezdesign/content/relation.html.twig', [
'content' => $content,
'contentType' => $contentType,
'contentType' => $content->getContentType(),
]);
}

Expand Down

0 comments on commit 25d34c0

Please sign in to comment.