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

Bug #4022 Record isn't passed into the formatter if () is not in the formatter spec
Submitted: 2005-04-01 00:34 UTC
From: justinpatrin Assigned: asnagy
Status: Closed Package: Structures_DataGrid
PHP Version: 4.3.10 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 25 + 27 = ?

 
 [2005-04-01 00:34 UTC] justinpatrin
Description: ------------ If a formatter is a simple string (i.e. a simple function) without () after it, the record is not passed into it. Reproduce code: --------------- $dg->addColumn(new Structures_DataGrid_Column('Title', null, null, null, null, 'someFunction')); function someFunction($params) { print_r($params['record]); } This can be fixed by changing $paramsList = null; to $paramList = array('record' => $record); Expected result: ---------------- The array of data for the record(s) outputted. Actual result: -------------- Nothing.

Comments

 [2005-04-05 20:58 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.