From 1df83d52f82a9e11e7a979ddc076b5dd7732b8d8 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 22 Mar 2011 08:51:15 +0000 Subject: [PATCH] fix bug reported by ludo (log in, non-admin) on project overview page --- src/lib/Hydra/Helper/Nix.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/Nix.pm b/src/lib/Hydra/Helper/Nix.pm index d4ddd376..6582ac67 100644 --- a/src/lib/Hydra/Helper/Nix.pm +++ b/src/lib/Hydra/Helper/Nix.pm @@ -193,7 +193,7 @@ sub findLastJobForBuilds { sub jobsetOverview { my ($c, $project) = @_; - return $project->jobsets->search( isProjectOwner($c, $project->name) ? {} : { hidden => 0 }, + return $project->jobsets->search( isProjectOwner($c, $project) ? {} : { hidden => 0 }, { order_by => "name" , "+select" => [ "(SELECT COUNT(*) FROM Builds AS a NATURAL JOIN BuildSchedulingInfo WHERE me.project = a.project AND me.name = a.jobset AND a.isCurrent = 1 )"