MT#5879 Fix commited error with remove pageStart.

ipeshinskaya/InvoiceTemplate5
Irina Peshinskaya 12 years ago committed by Victor Seva
parent 2fbc3dd85f
commit 90cf44857c

@ -12,9 +12,6 @@ sub process {
my $use_rs_cb = ('CODE' eq (ref $rs)); my $use_rs_cb = ('CODE' eq (ref $rs));
my $aaData = []; my $aaData = [];
my $displayRecords = 0;
my $totalRecords = $use_rs_cb ? 0 : $rs->count;
# check if we need to join more tables # check if we need to join more tables
# TODO: can we nest it deeper than once level? # TODO: can we nest it deeper than once level?
@ -84,7 +81,8 @@ sub process {
} }
} }
$displayRecords = $use_rs_cb ? 0 : $rs->count; my $totalRecords = $use_rs_cb ? 0 : $rs->count;
my $displayRecords = $use_rs_cb ? 0 : $rs->count;
# show specific row on top (e.g. if we come back from a newly created entry) # show specific row on top (e.g. if we come back from a newly created entry)
my $topId = $c_->request->params->{iIdOnTop}; my $topId = $c_->request->params->{iIdOnTop};
@ -126,6 +124,7 @@ sub process {
} }
# pagination # pagination
my $pageStart = $c_->request->params->{iDisplayStart};
my $pageSize = $c_->request->params->{iDisplayLength}; my $pageSize = $c_->request->params->{iDisplayLength};
if ($use_rs_cb) { if ($use_rs_cb) {
($rs, $totalRecords, $displayRecords) = $rs->( ($rs, $totalRecords, $displayRecords) = $rs->(

Loading…
Cancel
Save