PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #8797

_findValue cannot handle arrays

Details

Submitted2006-09-27 13:14 UTC
Frommick at mick-design dot ch
StatusBogus
PackageHTML_QuickForm
PHP Version5.0.5
OSApache 2.0
Roadmaps(Not assigned)

Comments

[2006-09-27 13:14 UTC] mick at mick-design dot ch

Description:
------------
Hello guys

In the seagull framework I found an error in the class element.php in method _findValue().

For example radio buttons with names as arrays won't work because _findValue() doesn't handle arrays correctly.

When $elementName contains brackets "[", so the key should be extracted and used in $values which isn't the case there. The strreplace and following eval statements both are buggy.

Cheers

Mick

Test script:
---------------
See open URL:
http://seagull.smashboard.com/www/setup.php

Expected result:
----------------
Clicking on "yes" for license agreement and pressing on "next" should validate the page and continue...

Actual result:
--------------
Error message appears that nothing has been agreed (this because method _findValue() doesn't work correctly with arrays).

[2006-09-27 13:31 UTC] mick at mick-design dot ch

Sorry guys, my mistake. This method is correct. The error lies somewhere else. I will report later...

Cheers

Mick