Home » HTML » HTML_Template_Flexy » Bug #3385
HTML_Element_Factory::setRequired() discards elements
Details
| Submitted | 2005-02-05 11:00 UTC |
|---|---|
| From | paul at cunnane dot net |
| Assigned | alan_k |
| Status | Closed |
| Package | HTML_Template_Flexy |
| PHP Version | 4.3.10 |
| OS | Linux |
| 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()).