update default param of content model

This commit is contained in:
Manuel Raynaud
2013-09-21 16:07:25 +02:00
parent f44b7daf8c
commit 1da66ece29
7 changed files with 43 additions and 18 deletions

View File

@@ -268,4 +268,20 @@ class ContentController extends AbstractCrudController
array('parent' => $this->getFolderId())
);
}
/**
* @param \Thelia\Core\Event\Content\ContentUpdateEvent $updateEvent
* @return Response|void
*/
protected function performAdditionalUpdateAction($updateEvent)
{
if ($this->getRequest()->get('save_mode') != 'stay') {
// Redirect to parent category list
$this->redirectToRoute(
'admin.folders.default',
array('parent' => $this->getFolderId())
);
}
}
}