Req #9264 [NEW]: method toArray() doesn't return errors of hidden fields
| From: | piotr_wozniak at sevenet dot pl | Date: | Wed, 08 Nov 2006 10:18:38 +0000 |
| Subject: | Req #9264 [NEW]: method toArray() doesn't return errors of hidden fields | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8738@lists.php.net to get a copy of this message | ||
From: piotr_wozniak at sevenet dot pl
Operating system: debian
Package version:
PHP version: 5.1.6
Package: Documentation
Bug Type: Feature/Change Request
Bug description: method toArray() doesn't return errors of hidden fields
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] =>
)
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=9264&edit=1
--