8000 Add isSubmitted call · symfony/symfony-docs@f41492a · GitHub
[go: up one dir, main page]

Skip to content

Commit f41492a

Browse files
1 parent 8c17033 commit f41492a

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
@@ -242,7 +242,7 @@ controller::
242242

243243
$form->handleRequest($request);
244244

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

248248
return $this->redirectToRoute('task_success');

0 commit comments

Comments
 (0)
0