fix SQL report pagination

This commit is contained in:
Graham Knop 2007-08-24 07:22:45 +00:00
parent 28c30cc5c1
commit cd3cd63d12
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
- fix: bug in poll where you can't edit it to have less answers
- fix: CS post title form field sized too large
- fix: asset manager doesn't obey ui levels
- fix: pagination broken on SQL Reports
7.4.3
- Data Forms set reply to to the same as the from field

View file

@ -693,7 +693,7 @@ sub setDataByQuery {
#Set the query limits
$sql =~ s/;\s+$//;
$sql .= " limit $start,$rowsPerPage";
$sql =~ s/select/select SQL_CALC_FOUND_ROWS /;
$sql =~ s/\bSELECT\s/SELECT SQL_CALC_FOUND_ROWS /i;
#$self->session->errorHandler->warn($sql);
#Get only the data necessary from the database