Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.2.16

Bug #70 Flexy renderer: label can be array of labels
Submitted: 2003-10-06 07:16 UTC
From: jeroen at zwolnet dot com Assigned: mixtli
Status: Closed Package: HTML_QuickForm
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2003-10-06 07:16 UTC] jeroen at zwolnet dot com
Description: ------------ PROBLEM: The Flexy renderer does not handle labels correctly if it is an array. WORKAROUND: subclass HTML_QuickForm_Renderer_ObjectFlexy::_elementToObject and do something like: if (is_array($label)) { $element->setLabel($label[0]); $ret = parent::_elementToObject($element, $required, $error); $ret->label_1 = $label[1]; $ret->label_2 = $label[2]; $ret->label_3 = $label[3]; } else { $ret = parent::_elementToObject($element, $required, $error); }

Comments

 [2003-10-06 11:48 UTC] avb
Assigning to the renderer author
 [2003-11-03 12:55 UTC] avb
Fixed in CVS. The usage example was added to FlexyDynamic_example.php