PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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