Skip to content

Commit 74f1eea

Browse files
committed
minor #13848 Update direct_submit.rst (KamilKubicki)
This PR was submitted for the 5.1 branch but it was merged into the 4.4 branch instead. Discussion ---------- Update direct_submit.rst Missing variable initialisation used in createForm function. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 4483d0a Update direct_submit.rst
2 parents 468e52a + 4483d0a commit 74f1eea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

form/direct_submit.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ control over when exactly your form is submitted and what data is passed to it::
1515

1616
public function new(Request $request)
1717
{
18+
$task = new Task();
1819
$form = $this->createForm(TaskType::class, $task);
1920

2021
if ($request->isMethod('POST')) {

0 commit comments

Comments
 (0)