From 28fde34b9cb560ddf1699ec69d0bf5da584217f3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 9 Apr 2009 15:09:00 +0000 Subject: [PATCH] --- src/lib/Hydra/Base/Controller/ListBuilds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Base/Controller/ListBuilds.pm b/src/lib/Hydra/Base/Controller/ListBuilds.pm index 19c2cb6e..c72e38a3 100644 --- a/src/lib/Hydra/Base/Controller/ListBuilds.pm +++ b/src/lib/Hydra/Base/Controller/ListBuilds.pm @@ -82,7 +82,7 @@ sub latest : Chained('get_builds') PathPart('latest') { my ($latest) = joinWithResultInfo($c, $c->stash->{allBuilds}) ->search({finished => 1, buildstatus => 0}, {order_by => ["timestamp DESC"]}); - notFound "There is no successful build to redirect to." unless defined $latest; + notFound($c, "There is no successful build to redirect to.") unless defined $latest; $c->res->redirect($c->uri_for($c->controller('Build')->action_for("view_build"), [$latest->id], @rest));