From 599d0ec77040b5e5936911a924cec5dc6068f85e Mon Sep 17 00:00:00 2001 From: David Delikat Date: Mon, 13 Apr 2009 00:48:10 +0000 Subject: [PATCH] fixed bug 9989: thing pagination no longer includes datasave params --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/Thingy.pm | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index b9413437e..59a67700d 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.7.4 + - fixed #9989: thing-search template won't include data-save params in the url for pagination - fixed #10122: fixed date object to not change the value in 'toHtml' function. - fixed #9764: drag drop now uses the handle for 'pickup' rather than the whole object. - Default Survey Question bundles now store full answer information in json. Everything configured in an answer will be saved in a default configuration. diff --git a/lib/WebGUI/Asset/Wobject/Thingy.pm b/lib/WebGUI/Asset/Wobject/Thingy.pm index 9398d9a32..4013443e7 100644 --- a/lib/WebGUI/Asset/Wobject/Thingy.pm +++ b/lib/WebGUI/Asset/Wobject/Thingy.pm @@ -3152,6 +3152,9 @@ sub getSearchTemplateVars { $currentUrl = $self->getUrl(); foreach ($self->session->form->param) { + # if we just saved data from an edit, we do not want to keep any of the params + last if $_ eq 'func' and $self->session->form->process($_) eq 'editThingDataSave'; + unless ($_ eq "pn" || $_ eq "op" || $_ =~ /identifier/xi || $_ =~ /password/xi || $_ eq "orderBy" || $self->session->form->process($_) eq "") { $currentUrl = $self->session->url->append($currentUrl,$self->session->url->escape($_)