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

Bug #8244 sort() method sets wrong properties
Submitted: 2006-07-19 08:22 UTC
From: gramlich at eosc dot de Assigned: wiesemann
Status: Closed Package: Structures_DataGrid_DataSource_DBTable (version 0.1.2)
PHP Version: 4.3.2 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2006-07-19 08:22 UTC] gramlich at eosc dot de (Gregor Gramlich)
Description: ------------ Hallo Mark, danke für das schnelle Update beim letzten Bug. Hier ist der nächste: The sort() method sets properties sortField and sortDir, which should be _sortField and _sortDir. Change lines 198, 199. --- DBTableBAK.php 2006-07-18 16:59:25.000000000 +0200 +++ DBTable.php 2006-07-19 10:16:28.912732654 +0200 @@ -195,8 +195,8 @@ */ function sort($sortField, $sortDir) { - $this->sortField = $sortField; - $this->sortDir = $sortDir; + $this->_sortField = $sortField; + $this->_sortDir = $sortDir; }

Comments

 [2006-07-19 09:43 UTC] wiesemann (Mark Wiesemann)
(English only here, please, so that others can also understand) Confirmed. Interesting that I didn't have recognized this myself yet. I'll correct this today while I also add 'multiSort' feature to this driver. Thanks!
 [2006-07-19 10:15 UTC] wiesemann (Mark Wiesemann)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Structures_DataGrid_DataSource_DBTable