Skip to content

Commit

Permalink
Fix ContentViewBuilderFactory (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-rath committed May 6, 2020
1 parent 37890d5 commit ebfcb34
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,18 @@ public function createViews(
if ($this->hasPermission($securityContext, PermissionTypes::ADD)) {
if ($addParentView) {
if (is_subclass_of($dimensionContentClass, TemplateInterface::class)) {
$views[] = $this->createTemplateFormView(
/** @var FormViewBuilderInterface|PreviewFormViewBuilderInterface $templateFormView */
$templateFormView = $this->createTemplateFormView(
$addParentView,
false,
$resourceKey,
$templateFormKey,
$addToolbarActions
);

$templateFormView->setEditView($editParentView);

$views[] = $templateFormView;
}
}
}
Expand Down

0 comments on commit ebfcb34

Please sign in to comment.