Loading module/Oscar/src/Oscar/Controller/OrganizationController.php +3 −1 Original line number Diff line number Diff line Loading @@ -331,13 +331,15 @@ class OrganizationController extends AbstractOscarController public function newAction() { $form = new OrganizationIdentificationForm($this->getOrganizationService()->getConnectorsList(), $this->getOrganizationService()->getOrganizationTypesSelect()); $entity = new Organization(); $form->init(); $form->bind($entity); if ($this->getRequest()->isPost()) { $posted = $this->getRequest()->getPost(); $form->setData($posted); if( $form->isValid() ){ $entity = new Organization(); $this->getEntityManager()->persist($entity); $this->getEntityManager()->flush($entity); $this->redirect()->toRoute('organization/show', ['id'=>$entity->getId()]); Loading module/Oscar/view/oscar/organization/form.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ <ul class="errors"> <?php foreach ($form->getMessages() as $msg): ?> <li><?= $msg ?></li> <li><?= var_dump($msg) ?></li> <?php endforeach; ?> </ul> Loading Loading
module/Oscar/src/Oscar/Controller/OrganizationController.php +3 −1 Original line number Diff line number Diff line Loading @@ -331,13 +331,15 @@ class OrganizationController extends AbstractOscarController public function newAction() { $form = new OrganizationIdentificationForm($this->getOrganizationService()->getConnectorsList(), $this->getOrganizationService()->getOrganizationTypesSelect()); $entity = new Organization(); $form->init(); $form->bind($entity); if ($this->getRequest()->isPost()) { $posted = $this->getRequest()->getPost(); $form->setData($posted); if( $form->isValid() ){ $entity = new Organization(); $this->getEntityManager()->persist($entity); $this->getEntityManager()->flush($entity); $this->redirect()->toRoute('organization/show', ['id'=>$entity->getId()]); Loading
module/Oscar/view/oscar/organization/form.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ <ul class="errors"> <?php foreach ($form->getMessages() as $msg): ?> <li><?= $msg ?></li> <li><?= var_dump($msg) ?></li> <?php endforeach; ?> </ul> Loading