Home » HTML » HTML_QuickForm » Bug #6970
applyFilter doesn't return NONEXIST_ELEMENT Error
Details
| Request #6970 | applyFilter doesn't return NONEXIST_ELEMENT Error |
|---|---|
| Submitted | 2006-03-01 10:21 UTC |
| From | wojciech dot olearczyk at ciao-group dot com |
| Assigned | avb |
| Status | Closed |
| Package | HTML_QuickForm |
| PHP Version | 4.3.8 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-03-01 10:21 UTC] wojciech dot olearczyk at ciao-group dot com
Description:
------------
It is stated on http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.applyfilter.php
that HTML_QuickForm::applyFilter() may return error if element is not found.
However that's not true. There is lack of this functionality within code.
Test script:
---------------
$mResult = $oForm->applyFilter('no_element_with_that_name', 'trim');
if ( PEAR::isError ( $mResult ) ) {
( ... )
}
Expected result:
----------------
HTML_QuickForm::applyFilter() will return QUICKFORM_NONEXIST_ELEMENT if element cannot be found.
Actual result:
--------------
no error