Zend Framework

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

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Open Open
  • Priority: Blocker Blocker
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Zend_Form
  • Labels:
    None
  • Language:
    English

Description

public function subFormIsValid(Zend_Form_SubForm $subForm, array $data)
    {
        ...
-            $this->getSessionNamespace()->$name = $subForm->getValues();
+            $this->getSessionNamespace()->$name = $subForm->getValues(true);
        ...
    }
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.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: