fixed #11745: Pagination doesn't work in DataForm list mode
This commit is contained in:
parent
5bc83c4b17
commit
078bc0e162
2 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
7.9.10
|
7.9.10
|
||||||
- fixed #11721: spamStopWords not in WebGUI.conf.original
|
- fixed #11721: spamStopWords not in WebGUI.conf.original
|
||||||
- fixed #11729: Trash your User Function Style, and WebGUI locks you out
|
- 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
|
7.9.9
|
||||||
- fixed #11693: Shopping cart does not show for visitor user
|
- fixed #11693: Shopping cart does not show for visitor user
|
||||||
|
|
|
||||||
|
|
@ -727,7 +727,7 @@ sub getListTemplateVars {
|
||||||
} @{ $self->getFieldOrder };
|
} @{ $self->getFieldOrder };
|
||||||
$var->{field_loop} = \@fieldLoop;
|
$var->{field_loop} = \@fieldLoop;
|
||||||
my @recordLoop;
|
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], }); });
|
$p->setDataByCallback(sub { return $self->entryClass->iterateAll($self, { offset => $_[0], limit => $_[1], }); });
|
||||||
my $entryIter = $p->getPageIterator();
|
my $entryIter = $p->getPageIterator();
|
||||||
while ( my $entry = $entryIter->() ) {
|
while ( my $entry = $entryIter->() ) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue