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

Bug #5723 Smarty Renderer Error
Submitted: 2005-10-19 23:02 UTC
From: adirotea Assigned: olivierg
Status: Closed Package: Structures_DataGrid
PHP Version: 5.1.0 OS:
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 : 18 + 48 = ?

 
 [2005-10-19 23:02 UTC] adirotea
Description: ------------ In file Structures/DataGrid/Renderer/Smarty.php line 87 the name of returned variable name is incorrect. Test script: --------------- ============= == Current == ============= if ($this->_tpl != '') { $this->_smarty->assign('recordSet', $this->_dg->recordSet); $this->_smarty->assign('columnSet', $this->_dg->columnSet); $this->_smarty->assign('recordLimit', $this->_dg->rowLimit); $this->_smarty->assign('currentPage', $this->_dg->page); return $smarty; } else { return new PEAR_Error('Error: No template defined'); } ============= == Correct == ============= if ($this->_tpl != '') { $this->_smarty->assign('recordSet', $this->_dg->recordSet); $this->_smarty->assign('columnSet', $this->_dg->columnSet); $this->_smarty->assign('recordLimit', $this->_dg->rowLimit); $this->_smarty->assign('currentPage', $this->_dg->page); return $this->_smarty; } else { return new PEAR_Error('Error: No template defined'); }

Comments

 [2005-10-31 10:00 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.