diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index fdaeb80d..0370cc8c 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -285,7 +285,7 @@ sub search :Local Args(0) { , "jobset.hidden" => 0 }, { order_by => ["enabled_ desc", "project", "jobset", "name"], join => ["project", "jobset"] - , "+select" => [\ "(project.enabled = 1 and jobset.enabled = 1 and exists (select 1 from Builds where project = project.name and jobset = jobset.name and job = me.name and iscurrent = 1)) enabled_"] + , "+select" => [\ "(project.enabled = 1 and jobset.enabled = 1 and exists (select 1 from Builds where project = project.name and jobset = jobset.name and job = me.name and iscurrent = 1)) as enabled_"] , "+as" => ["enabled"] , rows => $c->stash->{limit} + 1 } ) ];