Skip to content

Commit 03552a3

Browse files
committed
Minor reword
1 parent bd41b74 commit 03552a3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

form/direct_submit.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,9 @@ method, pass the submitted data directly to
8686
.. caution::
8787

8888
When the second parameter ``$clearMissing`` is ``false``, like with the
89-
"PATCH" method, the validation extension will only handle the submitted
90-
fields. If the underlying data needs to be validated, this should be done
91-
manually, i.e. using the validator.
92-
93-
When you need validation for some fields you can extend your data array with the required ones so that they will be validated.
94-
i.e.::
95-
89+
"PATCH" method, the validation will only apply to the submitted fields. If
90+
you need to validate all the underlying data, add the required fields
91+
manually so that they are validated::
92+
93+
// 'email' and 'username' are added manually to force their validation
9694
$form->submit(array_merge(['email' => null, 'username' => null], $request->request->all()), false);

0 commit comments

Comments
 (0)