PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #9264

method toArray() doesn't return errors of hidden fields

Details

Request #9264method toArray() doesn't return errors of hidden fields
Submitted2006-11-08 10:18 UTC
Frompiotr_wozniak at sevenet dot pl
StatusWont fix
PackageHTML_QuickForm
PHP Version5.1.6
OSdebian
Roadmaps(Not assigned)

Comments

[2006-11-08 10:18 UTC] piotr_wozniak at sevenet dot pl

Description:
------------
I have to validate hidden fields of the form due to the security. I can save the page on my local drive, edit the form and send it to the server with editted hidden field.

And now I got the problem that QuickForm validates the field correctly, but the toArray() method doesn't return this hidden field error which exists in the quickform array.

Test script:
---------------
It's not a script - it's a piece of data in quickform array after a validation:

[_errors] => Array
(
[id] => No access!
)

Expected result:
----------------
[elements] => Array
(
[0] => Array
(
[name] => id
[value] => 11
[type] => hidden
[frozen] =>
[required] =>
[error] => No access!
[label] =>
[html] =>
)

Actual result:
--------------
[elements] => Array
(
[0] => Array
(
[name] => id
[value] => 11
[type] => hidden
[frozen] =>
[required] =>
[error] =>
[label] =>
[html] =>
)