fixed #11745: Pagination doesn't work in DataForm list mode

This commit is contained in:
khenn 2010-07-27 11:20:30 -05:00
parent 5bc83c4b17
commit 078bc0e162
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
7.9.10
- fixed #11721: spamStopWords not in WebGUI.conf.original
- fixed #11729: Trash your User Function Style, and WebGUI locks you out
- fixed #11745: Pagination doesn't work in DataForm list mode
7.9.9
- fixed #11693: Shopping cart does not show for visitor user

View file

@ -727,7 +727,7 @@ sub getListTemplateVars {
} @{ $self->getFieldOrder };
$var->{field_loop} = \@fieldLoop;
my @recordLoop;
my $p = WebGUI::Paginator->new($session);
my $p = WebGUI::Paginator->new($session,$self->getUrl("mode=list"));
$p->setDataByCallback(sub { return $self->entryClass->iterateAll($self, { offset => $_[0], limit => $_[1], }); });
my $entryIter = $p->getPageIterator();
while ( my $entry = $entryIter->() ) {