Permalink
Browse files

Can dump data

  • Loading branch information...
1 parent 02e0799 commit 6d3a0e888b9f0ca61e26a8dfb858bb7c27b33fe8 @kthakore committed Jan 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 implementation/SIMS/SIMS/lib/SIMS/Controller/Report.pm
View
4 implementation/SIMS/SIMS/lib/SIMS/Controller/Report.pm
@@ -52,15 +52,15 @@ sub test_query : Chained('base') : PathPart('test_query') : Args(0) {
my ( $self, $c ) = @_;
my $query = {};
- foreach(0..$c->req->param('count'))
+ foreach(0..($c->req->param('count')-1))
{
$query->{$c->req->{parameters}->{"column_$_"}} =
{ $c->req->{parameters}->{"condition_$_"} => $c->req->{parameters}->{"text_$_"} };
}
my @foo =$c->model('DB::Student')->search( $query );
- $c->res->body( Dumper(\@foo) );
+ $c->res->body( Dumper \@foo);
$c->stash(template => 'report/index.tt' );

0 comments on commit 6d3a0e8

Please sign in to comment.