upgrade forms to update and create person

This commit is contained in:
2014-11-07 16:26:15 +01:00
parent 2a3ebb3659
commit 2358e2a9bb
6 changed files with 9 additions and 43 deletions

View File

@@ -316,7 +316,7 @@ class PersonController extends Controller {
$em->flush();
return $this->redirect($this->generateUrl('chill_person_view',
array('id' => $person->getId())));
array('person_id' => $person->getId())));
} else {
$r = new Response('this should not happen if you reviewed your submission');
$r->setStatusCode(400);