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

Bug #3859 Setting useHeader as false still renders the header
Submitted: 2005-03-17 10:12 UTC
From: daniel at assertio dot es Assigned: asnagy
Status: Closed Package: Structures_DataGrid
PHP Version: 5.0.2 OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2005-03-17 10:12 UTC] daniel at assertio dot es
Description: ------------ In order to skip rendering the table header, using $dg->renderer->useHeader(false) still renders the header row but with empty cells &nbsp. Reproduce code: --------------- Patch: In renderer/HTMLTable.php, method _buildHTMLTableBody, change: Change line 417: $rowCnt = 0 To: $rowCnt = ($this->useHeader) ? 1 : 0; Remove lines 420 and 457: $rowCnt++; Add line 464: $rowCnt++;

Comments

 [2005-03-18 05:17 UTC] daniel at assertio dot es
I made a mistake, line 417 should read $rowCnt = ($this->header) ? 1 : 0;
 [2005-03-18 20:53 UTC] asnagy
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.