From c8d35c23bbe8739b75e0e56f908c0c318f9fc809 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 20 Sep 2016 14:10:54 +0200 Subject: [PATCH] Fix issue #6 - Suppression d'un gist en erreur --- src/Gist/Controller/MyController.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Gist/Controller/MyController.php b/src/Gist/Controller/MyController.php index 248c03e..f83721f 100644 --- a/src/Gist/Controller/MyController.php +++ b/src/Gist/Controller/MyController.php @@ -45,14 +45,6 @@ class MyController extends Controller $gists = $this->getUser()->getGistsPager($page, $options); - if ($request->isMethod('post')) { - $form->submit($request); - - if ($form->isValid()) { - $gist = $app['gist']->create(new Gist(), $form->getData(), $this->getUser()); - } - } - if ($request->isMethod('post')) { $deleteForm->submit($request);