Home » HTML » HTML_QuickForm » Bug #5793
Issue with Flexy renderer and elementnames with [] appended to it
Details
| Submitted | 2005-10-27 11:13 UTC |
|---|---|
| From | spam at electroteque dot org |
| Status | Wont fix |
| Package | HTML_QuickForm |
| PHP Version | 5.1.0 |
| OS | n/a |
| Roadmaps | (Not assigned) |
Comments
[2005-10-27 11:13 UTC] spam at electroteque dot org
Description:
------------
I get this when i try to create elements with []
appended to them
Fatal error: Cannot access empty property in /Volumes/
DATA/www/musictrade/classes/PEAR/HTML/QuickForm/
Renderer/ObjectFlexy.php(193) : eval()'d code on line 1
in here
function _storeObject($elObj)
{
if ($elObj) {
$keys = $elObj->keys;
unset($elObj->keys);
if(is_object($this->_currentGroup) &&
('group' != $elObj->type)) {
$code = '$this->_currentGroup' . $keys .
' = $elObj;';
} else {
$code = '$this->_obj' . $keys . ' =
$elObj;';
}
eval($code);
}
}
it shows up as
->{'title'}->{''}
i have to explicity add it like [0] which is a pain
especially when i am dynamically adding the same
elements more than once for obvious uses.
What do i do ?