Home » Structures » Structures_DataGrid » Bug #1181
Query string is not keep in data ordering
Details
| Submitted | 2004-04-11 22:48 UTC |
|---|---|
| From | rombert at go dot ro |
| Assigned | asnagy |
| Status | Closed |
| Package | Structures_DataGrid |
| PHP Version | 4.2.2 |
| OS | Linux |
| 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