Add a test to Utility.t to make sure that WebGUI::Utility::round also rounds up.
Add Paginator tests for paginating array data. Fix an off by 1 error in the Paginator when handling array data. SQL data is fine.
This commit is contained in:
parent
6682be305b
commit
797f5f9363
4 changed files with 35 additions and 8 deletions
|
|
@ -527,7 +527,7 @@ sub setDataByArrayRef {
|
|||
my $self = shift;
|
||||
my $rowRef = shift;
|
||||
$self->{_rowRef} = $rowRef;
|
||||
$self->{_totalRows} = $#{$rowRef};
|
||||
$self->{_totalRows} = $#{$rowRef} + 1;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue