fix: New pagination breaks SQL Reports with semicolons

This commit is contained in:
Graham Knop 2007-07-30 16:27:43 +00:00
parent 18b5da96d3
commit aaf7d9cf44
2 changed files with 3 additions and 0 deletions

View file

@ -2,6 +2,8 @@
- Fixed a bug where crons wouldn't load into spectre's queue at startup.
- Fixed a bug in the Collaboration System where posts from the Safari browser
would be submitted without changes.
- fix: New pagination breaks SQL Reports with semicolons
7.4.0
- api: Form Controls and Workflow Activities may now include web based helper

View file

@ -691,6 +691,7 @@ sub setDataByQuery {
my $start = ( ($pageNumber - 1) * $rowsPerPage );
#Set the query limits
$sql =~ s/;\s+$//;
$sql .= " limit $start,$rowsPerPage";
$sql =~ s/select/select SQL_CALC_FOUND_ROWS /;