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

Bug #2276 name attribute of header element not rendered out in Array
Submitted: 2004-09-03 11:52 UTC Modified: 2006-12-24 15:52 UTC
From: veeeee at gmail dot com Assigned: avb
Status: Closed Package: HTML_QuickForm
PHP Version: 4.3.9 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2004-09-03 11:52 UTC] veeeee at gmail dot com
Description: ------------ name attribute of header element not exported when rendered to array. Here's a small patch to render out the name as well. --- Index: PEAR/HTML/QuickForm/header.php =================================================================== diff -u -r1.1 header.php --- PEAR/HTML/QuickForm/header.php 24 Aug 2004 17:00:47 -0000 1.1 +++ PEAR/HTML/QuickForm/header.php 3 Sep 2004 16:30:45 -0000 @@ -42,6 +42,7 @@ { $this->HTML_QuickForm_static($elementName, null, $text); $this->_type = 'header'; + $this->_name = $elementName; } // }}} Index: PEAR/HTML/QuickForm/Renderer/Array.php =================================================================== diff -u -r1.1 Array.php --- PEAR/HTML/QuickForm/Renderer/Array.php 24 Aug 2004 17:00:47 -0000 1.1 +++ PEAR/HTML/QuickForm/Renderer/Array.php 3 Sep 2004 16:30:45 -0000 @@ -176,7 +176,7 @@ function renderHeader(&$header) { - $this->_ary['sections'][$this->_sectionCount] = array('header' => $header->toHtml()); + $this->_ary['sections'][$this->_sectionCount] = array('header' => $header->toHtml(), 'name' => $header->getName()); $this->_currentSection = $this->_sectionCount++; } // end func renderHeader

Comments

 [2004-10-09 14:35 UTC] avb
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.