Edit report at https://pear.php.net/bugs/bug.php?id=15769&edit=1

ID: 15769
Updated by: daniel.oconnor@gmail.com
Reported By: michael at stellarent dot com
Summary: setURLFormat method does not return clean query
string intermittently
-Status: Open
+Status: Closed
Type: Bug
Package: Structures_DataGrid
Operating System: Fedora 6
Package Version: 0.9.0
PHP Version: 5.1.6
-Assigned To:
+Assigned To: doconnor
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: doconnor
This bug has been fixed in SVN.

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.

Previous Comments:

[2009-01-25 13:23:26] mpgjunky

PS, using:

Pager 2.4.7 stable
Structures_DataGrid 0.9.0 beta
Structures_DataGrid_DataSource_Array 0.1.4 beta
Structures_DataGrid_DataSource_DB 0.1.1 beta
Structures_DataGrid_DataSource_DBQuery 0.1.11 beta
Structures_DataGrid_DataSource_DBTable 0.1.7 beta
Structures_DataGrid_DataSource_MDB2 0.1.11 beta
Structures_DataGrid_DataSource_PDO 0.1.0 beta
Structures_DataGrid_Renderer_HTMLSortForm 0.1.3 beta
Structures_DataGrid_Renderer_HTMLTable 0.1.5 beta
Structures_DataGrid_Renderer_Pager 0.1.3 beta


[2009-01-25 13:19:23] mpgjunky

I have uploaded a patch. Not sure if it's the correct fix, but it works
for me.



[2009-01-25 13:12:02] mpgjunky

Applies to both outputting the grid and the pager links:

setting $datagrid->setUrlFormat('/page/:page/:orderBy/:direction')
returns a clean query string like:


However, if one clicks on the next page link, the url is re-formatted


Test script:
Setup a grid with pager links and set url format to whatever you wish.

You MUST click on the next page link to obtain the bad result. The
default output (i.e. page 1) is always ok.

Expected result:
the url query string should not contain normal style query string, i.e.

Actual result:


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppear-bugs @
postedDec 26, '11 at 3:06p
activeDec 26, '11 at 3:06p

1 user in discussion

Daniel Oconnor: 1 post



site design / logo © 2022 Grokbase