Skip to content

Commit d8c93e2

Browse files
DanielSiepmannwouterj
authored andcommitted
Add isSubmitted call
1 parent e119979 commit d8c93e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ controller::
231231

232232
$form->handleRequest($request);
233233

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

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

0 commit comments

Comments
 (0)