From: Sebastian Riedel Date: Sun, 3 Apr 2005 18:32:46 +0000 (+0000) Subject: fixed $c->req->action(undef) X-Git-Tag: 5.7099_04~1613 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=4a851aa274e7f52df6a0ea3e56a9845b22d7d1f3 fixed $c->req->action(undef) --- diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index bf4cc0f..87c825b 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -459,7 +459,8 @@ sub handler { for my $begin ( @{ $c->get_action( 'begin', $namespace ) } ) { $c->state( $c->execute( @{ $begin->[0] } ) ); } - for my $result ( @{ $c->get_action( $action, $default ) }[-1] ) + for my $result ( + @{ $c->get_action( $c->req->action, $default ) }[-1] ) { $c->state( $c->execute( @{ $result->[0] } ) ); last unless $default;