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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!