Issues

ZF-10251: Tutorial Multi-Page Forms needs to be updated to resolve the correct array levels for subforms

Issue Type: Docs: Problem Created: 2010-07-30T09:34:59.000+0000 Last Updated: 2012-08-01T10:52:04.000+0000 Status: Open Fix version(s): Reporter: Christian Albrecht (alab) Assignee: Christian Albrecht (alab) Tags: - Zend_Form

Related issues: - ZF-4606

Attachments:

Description

<pre class="highlight">
public function subFormIsValid(Zend_Form_SubForm $subForm, array $data)
    {
        ...
-            $this->getSessionNamespace()->$name = $subForm->getValues();
+            $this->getSessionNamespace()->$name = $subForm->getValues(true);
        ...
    }



<pre class="highlight">
public function processAction()
    {
        ...
+        $params = $this->getRequest()->getPost();
        if (!$this->subFormIsValid($form,
-                                   $this->getRequest()->getPost())) {
+                                   $params[$form->getName()])) {
        ...
    }

Furthermore there is an issue with Elements of the next SubForm in order beeing displayed as containing erroneous values, though they are displayed for the first time.

Comments

No comments to display

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts