Home » HTML » HTML_QuickForm » Bug #4932
exportValues() should not return internal values
Details
| Request #4932 | exportValues() should not return internal values |
|---|---|
| Submitted | 2005-07-27 22:08 UTC |
| From | jameslee at cs dot nmt dot edu |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 4.3.11 |
| OS | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-07-27 22:08 UTC] jameslee at cs dot nmt dot edu
Description:
------------
The exportValues() method returns _qf_default and button names that should be internal to QuickForm. This is an issue when one can not be sure of the contents of the form (for example, when using DB_Table to abstract field names) and must loop through the array returned by exportValues.
As a possible solution, using QuickForm 3.2.4pl1 stable, change QuickForm.php line 1814 from:
$values[$elementName] = $value;
to:
if (FALSE !== strpos($elmentName,'_qf_')) {
$values[$elementName] = $value;
}