skip offset calculation if pagination is disabled

agranig/1_0_subfix
Lars Dieckow 12 years ago
parent 9df80c6caf
commit 38a45d594f

@ -134,10 +134,9 @@ sub ajax_process_resultset :Private {
} }
#Pagination #Pagination
if (defined($iDisplayStart) && $iDisplayLength) { # $iDisplayLength will be -1 if bPaginate is false
$rs = $rs->search( if (defined $iDisplayStart && $iDisplayLength && $iDisplayLength > 0) {
undef, $rs = $rs->search(undef, {
{
offset => $iDisplayStart, offset => $iDisplayStart,
rows => $iDisplayLength, rows => $iDisplayLength,
}); });

Loading…
Cancel
Save