Fix the Shop/Transaction tests for JSON.
Convert Shop/Transaction and Shop/Tax to use buildDataTableStructure. Change SQL.pm to return a hash instead of a hashref for buildDataTableStructure.
This commit is contained in:
parent
4db53bb8ed
commit
875187ee74
4 changed files with 11 additions and 33 deletions
|
|
@ -241,7 +241,7 @@ Builds a data structure that can be converted to JSON and sent
|
|||
to a YUI Data Table. This is basically a hash of information about
|
||||
the results, with one of the keys being an array ref of hashrefs. It also
|
||||
calculates the total records that could have been matched without a limit
|
||||
statement, as well as how many were actually matched.
|
||||
statement, as well as how many were actually matched. It returns a hash.
|
||||
|
||||
=head3 sql
|
||||
|
||||
|
|
@ -270,7 +270,7 @@ sub buildDataTableStructure {
|
|||
$hash{totalRecords} = $self->quickScalar('select found_rows()') + 0; ##Convert to numeric
|
||||
$hash{recordsReturned} = $sth->rows();
|
||||
$sth->finish;
|
||||
return \%hash;
|
||||
return %hash;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue