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

Bug #3306 Can't addColumn() after bind()'ing
Submitted: 2005-01-27 01:15 UTC
From: ylf at xung dot org Assigned: olivierg
Status: Closed Package: Structures_DataGrid
PHP Version: 4.3.4 OS: Linux Debian
Roadmaps: (Not assigned)    
Subscription  


 [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.

Comments

 [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()