Fix issue #6 - Suppression d'un gist en erreur
This commit is contained in:
parent
229f532ac0
commit
a3abe3ba6f
|
@ -45,14 +45,6 @@ class MyController extends Controller
|
||||||
|
|
||||||
$gists = $this->getUser()->getGistsPager($page, $options);
|
$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')) {
|
if ($request->isMethod('post')) {
|
||||||
$deleteForm->submit($request);
|
$deleteForm->submit($request);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue