PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Structures » Structures_DataGrid » Bug #3306

Can't addColumn() after bind()'ing

Details

Submitted2005-01-27 01:15 UTC
Fromylf at xung dot org
Assignedolivierg
StatusClosed
PackageStructures_DataGrid
PHP Version4.3.4
OSLinux Debian
Roadmaps(Not assigned)

Comments

[2005-01-27 01:15 UTC] ylf at xung dot org

Description:
------------
With generate_columns set to true, when binding a dataobject, addColumn() statements have no effect.

Patch : http://www.samalyse.com/ln/0008.php

Reproduce code:
---------------
$dg_options = array(
'generate_columns' => true,
);

$column = new Structures_DataGrid_Column('',null,null,array(),null,'printEditLink()');
$datagrid->bind($dataobject,$dg_options);
$datagrid->addColumn($column);
$datagrid->render();

Expected result:
----------------
Rows of data with "Edit" links.

Actual result:
--------------
Rows of data with no "Edit" links.

[2005-10-05 01:26 UTC] olivierg at php dot net

Some additional informations have been reported in bug #4454:
http://pear.php.net/bugs/4454

[2005-10-11 00:25 UTC] olivierg at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

It is now possible to call addColumn() after or before bind()