Skip to content

Commit

Permalink
Update LayoutBlockController.php
Browse files Browse the repository at this point in the history
added new instance of classType to layoutblock content
  • Loading branch information
ychadwick committed Oct 23, 2020
1 parent 55f9b8c commit 5e35191
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Controller/LayoutBlockController.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public function createAction()
$layoutBlock->setSortOrder($request->get('sortOrder'));
$layoutBlock->setClassType($classType);
$layoutBlock->setPage($page);
$layoutBlock->setContent(new $classType);

/** @var $form \Symfony\Component\Form\Form */
$form = $this->admin->getForm();
Expand Down

0 comments on commit 5e35191

Please sign in to comment.