fix: Pagination of search results does not work

This commit is contained in:
Martin Kamerbeek 2006-06-06 11:53:23 +00:00
parent dd71810554
commit a2b2bb662f
2 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,7 @@
- fix: i18n reserved section name in Surveys
- fix: typo in Asset_ProjectManager i18n
- fix: captcha image is blank (Martink Kamerbeek / Procolix)
- fix: Pagination of search results does not work (Martin Kamerbeek / Procolix)
6.99.3
- Someone removed the status from the submission templates. That has been

View file

@ -15,6 +15,7 @@ use base "WebGUI::Asset::Wobject";
use Tie::IxHash;
use WebGUI::International;
use WebGUI::Paginator;
use WebGUI::Search;
=head1 NAME
@ -147,7 +148,7 @@ sub view {
synposis=>$data->{synopsis},
});
}
my $p = WebGUI::Paginator->new($self->session,$self->getUrl);
my $p = WebGUI::Paginator->new($self->session,$self->getUrl('doit=1;keywords='.$self->session->url->escape($self->session->form->get('keywords'))));
$p->setDataByArrayRef(\@results);
$p->appendTemplateVars(\%var);
$var{result_set} = $p->getPageData;