PEAR is archived and read-only

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

Home » Structures » Structures_DataGrid » Bug #1181

Query string is not keep in data ordering

Details

Submitted2004-04-11 22:48 UTC
Fromrombert at go dot ro
Assignedasnagy
StatusClosed
PackageStructures_DataGrid
PHP Version4.2.2
OSLinux
Roadmaps(Not assigned)

Comments

[2004-04-11 22:48 UTC] rombert at go dot ro

Description:
------------
Clicking on the header columns in order to sort the data wipes out the query string. To solve this, apply the following patch to Renderer/HTMLTable.php:

174,175c174,175
< if (stristr($_SERVER['PHP_SELF'], '?')) {
< $url = $_SERVER['PHP_SELF'] . '&orderBy=';
---
> if ( strlen($_SERVER['QUERY_STRING']) > 0 ) {
> $url = $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'] . '&orderBy=';

[2004-05-04 01:40 UTC] asnagy at webitecture dot org

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/packages.php