Skip to content

Commit

Permalink
Fix regression when a block is edited
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Rabaix committed Mar 6, 2012
1 parent 03745a8 commit fbdae7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Admin/BlockAdmin.php
Expand Up @@ -77,7 +77,7 @@ protected function configureFormFields(FormMapper $formMapper)
{
$block = $this->getSubject();

if ($block) {
if ($block && ($block->getType() == 'sonata.page.block.container' || !$this->hasParentFieldDescription())) {
$service = $this->blockManager->get($block);

if ($block->getId() > 0) {
Expand Down

0 comments on commit fbdae7f

Please sign in to comment.