Skip to content

Commit

Permalink
Add isSubmitted call
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSiepmann authored and wouterj committed Dec 7, 2015
1 parent e119979 commit d8c93e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ controller::

$form->handleRequest($request);

if ($form->isValid()) {
if ($form->isSubmitted() && $form->isValid()) {
// ... perform some action, such as saving the task to the database

return $this->redirect($this->generateUrl('task_success'));
Expand Down

0 comments on commit d8c93e2

Please sign in to comment.