From 1a4211dcb5263f34658ba594e757f678937d2dfa Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sat, 21 Feb 2009 00:37:57 +0000 Subject: [PATCH] Really fix Thingy pagination this time. I promise. For sure. No kidding. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/Thingy.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 108e77da9..23631bb0e 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -4,6 +4,7 @@ - fixed #9767: FileAsset breaks 'null' rule for FileAsset table - fixed defaultValues of undef cause mysql5.1 to complain about columns that are set to be NOT NULL. 5.0 doesn't care. - International text retrieval has been optimized + - fixed #9766: Thingy Pagination Broken 7.6.12 - fixed: During postback on a recurring transaction, the routine could error out instead of catching an error. diff --git a/lib/WebGUI/Asset/Wobject/Thingy.pm b/lib/WebGUI/Asset/Wobject/Thingy.pm index a25e68bc4..af0dcaa6d 100644 --- a/lib/WebGUI/Asset/Wobject/Thingy.pm +++ b/lib/WebGUI/Asset/Wobject/Thingy.pm @@ -3154,7 +3154,7 @@ sequenceNumber'); WebGUI::Cache->new($self->session,"query_".$thingId)->set($query,30*60); $paginatePage = $self->session->form->param('pn') || 1; - $currentUrl .= ";orderBy=".$orderBy if ($orderBy); + $currentUrl = $self->session->url->append($currentUrl, "orderBy=".$orderBy) if $orderBy; $p = WebGUI::Paginator->new($self->session,$currentUrl,$thingProperties->{thingsPerPage}, undef, $paginatePage);