small fix
Robert 'phaylon' Sedlacek [Wed, 13 Jan 2010 16:34:15 +0000 (17:34 +0100)]
lib/CatalystX/Declare/Action/CatchValidationError.pm

index d96421f..34e168e 100644 (file)
@@ -38,6 +38,8 @@ role CatalystX::Declare::Action::CatchValidationError {
 
             for my $key (@$named) {
 
+                next unless exists $ctx->request->params->{ $key };
+
                 my $value = $ctx->request->params->{ $key };
                 my $tc    = $tcs->{ $key };