PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Structures » Structures_DataGrid » Bug #3859

Setting useHeader as false still renders the header

Details

Submitted2005-03-17 10:12 UTC
Fromdaniel at assertio dot es
Assignedasnagy
StatusClosed
PackageStructures_DataGrid
PHP Version5.0.2
OSIrrelevant
Roadmaps(Not assigned)

Comments

[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++;

[2005-03-18 05:17 UTC] daniel at assertio dot es

I made a mistake, line 417 should read

$rowCnt = ($this->header) ? 1 : 0;