Home » HTML » HTML_QuickForm » Bug #4265
Object-Renderer startGroup
Details
| Submitted | 2005-05-03 06:26 UTC |
|---|---|
| From | sei at dmc dot de |
| Assigned | ths |
| Status | Closed |
| Package | HTML_QuickForm |
| PHP Version | 4.3.11 |
| Roadmaps | (Not assigned) |
Comments
[2005-05-03 06:26 UTC] sei at dmc dot de
Description:
------------
Little Copy-Paste-Bug:
$this->_view should be $this->_obj.
Could you pleaser fix this and make a new deployment.
Thx Sascha
Reproduce code:
---------------
original:
function startGroup(&$group, $required, $error)
{
$this->_currentGroup = $this->_elementToObject($group, $required, $error);
if(!empty($error)) {
$name = $this->_currentGroup->name;
$this->_view->errors->$name = $error;
}
} // end func startGroup
correct;
function startGroup(&$group, $required, $error)
{
$this->_currentGroup = $this->_elementToObject($group, $required, $error);
if(!empty($error)) {
$name = $this->_currentGroup->name;
$this->_obj->errors->$name = $error;
}
} // end func startGroup