Skip to content

Commit b185a9a

Browse files
committed
partially reverted previous commit
1 parent 6da16ba commit b185a9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/forms.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ the data is stored in a POST parameter with the name of the form::
7979
// form setup...
8080

8181
if ('POST' === $this['request']->getMethod()) {
82-
$form->bind($this['request']->get('customer'));
82+
$form->bind($this['request']->request->get('customer'));
8383

8484
if ($form->isValid()) {
8585
// save $customer object and redirect
@@ -277,7 +277,7 @@ Now we can easily adapt the form in the controller::
277277
$form->add($group);
278278

279279
if ('POST' === $this['request']->getMethod()) {
280-
$form->bind($this['request']->get('registration'));
280+
$form->bind($this['request']->request->get('registration'));
281281

282282
if ($form->isValid()) {
283283
$registration->process();

0 commit comments

Comments
 (0)