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 18:02 UTC Modified: 2006-12-16 18:22 UTC
From: adirotea Assigned: olivierg
Status: Closed Package: Structures_DataGrid
PHP Version: 5.1.0 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-10-19 18: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 05: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.