diff --git a/Classes/Controller/PositionController.php b/Classes/Controller/PositionController.php index 773efd2..f151876 100755 --- a/Classes/Controller/PositionController.php +++ b/Classes/Controller/PositionController.php @@ -324,9 +324,7 @@ public function createAction(\Webfox\Placements\Domain\Model\Position $newPositi $this->addFlashMessage( $this->translate('tx_placements.success.position.createAction') ); - $persistenceManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager'); - $persistenceManager->persistAll(); - $this->redirect('show', NULL, NULL, array('position'=>$newPosition), $this->settings['detailPid']); + $this->forward('show', NULL, NULL, array('position'=>$newPosition), $this->settings['detailPid']); } /** @@ -393,7 +391,7 @@ public function updateAction(\Webfox\Placements\Domain\Model\Position $position) $this->addFlashMessage( $this->translate('tx_placements.success.position.updateAction') ); - $this->redirect('show', NULL, NULL, array('position' => $position), $this->settings['detailPid']); + $this->forward('show', NULL, NULL, array('position' => $position), $this->settings['detailPid']); } /**