Skip to content

Commit a5d3bca

Browse files
committed
bug #6800 Fix missing function name (JosefVitu)
This PR was merged into the 2.7 branch. Discussion ---------- Fix missing function name Example in the 'Handling Form Submissions' section was invalid, as the name of a function to be called (isValid) was missing. Commits ------- 6ed019e Fix missing function name
2 parents d20a3c0 + 6ed019e commit a5d3bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ your controller::
234234

235235
$form->handleRequest($request);
236236

237-
if ($form->isSubmitted() && $form->()) {
237+
if ($form->isSubmitted() && $form->isValid()) {
238238
// $form->getData() holds the submitted values
239239
// but, the original `$task` variable has also been updated
240240
$task = $form->getData();

0 commit comments

Comments
 (0)