#21018 [Opn->Csd]: QuickForm, applyFilter small Bug
| From: | mansion@php.net | Date: | Sun, 15 Dec 2002 11:46:46 +0000 |
| Subject: | #21018 [Opn->Csd]: QuickForm, applyFilter small Bug | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-11679@lists.php.net to get a copy of this message | ||
ID: 21018
Updated by: mansion@php.net
Reported By: entis@poczta.fm
-Status: Open
+Status: Closed
Bug Type: PEAR related
Operating System: winxp
PHP Version: 4.2.3
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-12-14 16:24:24] entis@poczta.fm
1. Code (part of QuickForm_example.php)
...
$form->applyFilter('QFText', 'doubleval');
...
2. Result in browser (if PEAR::setErrorHandling(PEAR_ERROR_PRINT)
QuickForm Error: nonexistent html element
3. Bug (QuickForm::applyFilter)
if (isset($this->_submitValues[$element])) {
...
} else {
return PEAR::raiseError(...)
}
4. Solution
if (isset($this->_elementIndex[$element]) {
if (isset($this->_submitValues[$element])) {
...
}
} else {
return PEAR::raiseError(...)
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21018&edit=1