Issues

ZF-2828: MultiCheckboxes repopulating with post data

Issue Type: Bug Created: 2008-03-07T12:44:54.000+0000 Last Updated: 2008-04-21T14:55:03.000+0000 Status: Resolved Fix version(s): Reporter: Jason Eisenmenger (jasoneisen) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: - ZF-2830

Attachments:

Description

I'm just going to post a print_r of my two arrays. First is the one used to build a simple form:

<pre class="highlight">
Array
(
    [method] => post
    [elements] => Array
        (
            [100_1] => Array
                (
                    [0] => multicheckbox
                    [1] => Array
                        (
                            [multioptions] => Array
                                (
                                    [100_1_1] => Agriculture
                                    [100_1_2] => Automotive
                                    [100_1_12] => Chemical
                                    [100_1_13] => Communications
                                )

                            [required] => 1
                            [label] => Select the industry or industries that you work in
                        )

                )
            [Submit] => submit
        )

)

The second is the post data with all 4 fields checked:

<pre class="highlight">
Array
(
    [100_1] => Array
        (
            [0] => Array
                (
                    [0] => 100_1_1
                )

            [1] => Array
                (
                    [0] => 100_1_2
                )

            [2] => Array
                (
                    [0] => 100_1_12
                )

            [3] => Array
                (
                    [0] => 100_1_13
                )

        )
    [Submit] => Submit
)

Populating the form with the post data will not refill the check boxes.

This is for the latest HEAD: 8634

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2008-03-07T13:04:13.000+0000

I need: * Minimum code needed to reproduce (use an array from a form submission, if need be) * Expected outcome * Actual outcome

The description you gave does not give me nearly enough to go on.

Posted by Matthew Weier O'Phinney (matthew) on 2008-03-07T13:04:53.000+0000

Additionally, please advise as to what version of ZF you are using * Preview Release * RC1 * Current trunk (and whether you had updated just prior to submitting the report)

Posted by Matthew Weier O'Phinney (matthew) on 2008-03-07T13:05:31.000+0000

Downgrading issue and removing priority until submission can be clarified.

Posted by Jason Eisenmenger (jasoneisen) on 2008-03-07T13:19:43.000+0000

I'm just going to post a print_r of my two arrays. First is the one used to build a simple form:

<pre class="highlight">
Array
(
    [method] => post
    [elements] => Array
        (
            [100_1] => Array
                (
                    [0] => multicheckbox
                    [1] => Array
                        (
                            [multioptions] => Array
                                (
                                    [100_1_1] => Agriculture
                                    [100_1_2] => Automotive
                                    [100_1_12] => Chemical
                                    [100_1_13] => Communications
                                )

                            [required] => 1
                            [label] => Select the industry or industries that you work in
                        )

                )
            [Submit] => submit
        )

)

The second is the post data with all 4 fields checked:

<pre class="highlight">
Array
(
    [100_1] => Array
        (
            [0] => Array
                (
                    [0] => 100_1_1
                )

            [1] => Array
                (
                    [0] => 100_1_2
                )

            [2] => Array
                (
                    [0] => 100_1_12
                )

            [3] => Array
                (
                    [0] => 100_1_13
                )

        )

    [100_2] => 
    [100_3] => 
    [100_5] => 
    [Submit] => Submit
)

Populating the form with the post data will not refill the check boxes.

This is for the latest HEAD: 8634

Posted by Matthew Weier O'Phinney (matthew) on 2008-03-07T15:04:38.000+0000

I've added a test for this in trunk and the 1.5 release branch, but this was resolved previously with fixes for ZF-2830.

Posted by Wil Sinclair (wil) on 2008-03-31T16:04:35.000+0000

Please evaluate and categorize as necessary.

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