PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Structures » Structures_DataGrid_DataSource_DBTable » Bug #8244

sort() method sets wrong properties

Details

Submitted2006-07-19 08:22 UTC
Fromgramlich at eosc dot de
Assignedwiesemann
StatusClosed
PackageStructures_DataGrid_DataSource_DBTable
PHP Version4.3.2
Roadmaps(Not assigned)

Comments

[2006-07-19 08:22 UTC] gramlich at eosc dot de

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;
}