PEAR is archived and read-only

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

Home » HTML » HTML_Template_Flexy » Bug #3385

HTML_Element_Factory::setRequired() discards elements

Details

Submitted2005-02-05 11:00 UTC
Frompaul at cunnane dot net
Assignedalan_k
StatusClosed
PackageHTML_Template_Flexy
PHP Version4.3.10
OSLinux
Roadmaps(Not assigned)

Comments

[2005-02-05 11:00 UTC] paul at cunnane dot net

Description:
------------
(I understand that this method is deprecated, but it's kinda useful.)

Passing a template's elements to this method with a list of elements to be marked as 'required' causes only the required elements to be returned; all other elements are discarded.

The problem is the superfluous line

$ret = array();

in the method. Removing this causes the method to work as expected (i.e. like setErrors()).