fix - SQL Report w/ pagination and nested queries (pagination is now over-ridden as intended when nested queries are defined)

This commit is contained in:
Roy Johnson 2006-06-30 16:58:13 +00:00
parent 8c2434cc4d
commit 3fd656a651
2 changed files with 3 additions and 1 deletions

View file

@ -17,3 +17,5 @@
- fix: Adding Survey Choices
- fix: User/Group problem
- fix: Edit LDAP Connection
- fix: SQL Report w/ pagination and nested queries

View file

@ -428,7 +428,7 @@ sub _processQuery {
}
}
my $paginateAfter = $self->get("paginateAfter");
$paginateAfter = 1000 if($nr > 1);
$paginateAfter = 1000 if($self->{_query}{$nr + 1}{dbQuery});
my $p = WebGUI::Paginator->new($self->session,$url,$paginateAfter);
my $error = $p->setDataByQuery($query,$dbh,1,$placeholderParams);
if ($error ne "") {