ZF-8203: Zend_Form::isValid() kills array of "belongsTo"

Issue Type: Sub-task Created: 2009-11-02T07:16:59.000+0000 Last Updated: 2010-04-16T06:10:08.000+0000 Status: Resolved Fix version(s): Reporter: Dennis Becker (radhad) Assignee: Christian Albrecht (alab) Tags: - Zend_Form

Related issues: - ZF-9348

Attachments: - data.php


I have created a form with several "belongsTo" form elements. When I load the values on POST like this:

<pre class="highlight">
if($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost())
    $values = $form->getValues();

$values now differs from $this->getReuquest()->getPost() and could not populate its data to the form!


Posted by Dennis Becker (radhad) on 2009-11-02T07:27:38.000+0000

A form I created to test this issue.

Posted by Dennis Becker (radhad) on 2009-11-02T07:31:06.000+0000

Data-Array to fill the form.

Posted by Christian Albrecht (alab) on 2010-03-05T21:57:29.000+0000

Does this fix your Issue?

Posted by Christian Albrecht (alab) on 2010-03-18T08:22:21.000+0000

Fixed in [ZF-9348]

Posted by Christian Albrecht (alab) on 2010-03-25T13:23:57.000+0000

Will work on belongsTo after finishing elementsBelongTo.

Posted by Christian Albrecht (alab) on 2010-04-16T06:10:08.000+0000

This time this is fixed for real in parent ZF-9607

Have you found an issue?

See the Overview section for more details.


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

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