PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #4265

Object-Renderer startGroup

Details

Submitted2005-05-03 06:26 UTC
Fromsei at dmc dot de
Assignedths
StatusClosed
PackageHTML_QuickForm
PHP Version4.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