Build.pm: Don't get isChannel using buildproducts.
We now have a column for that, so no need for counting rows which was a bit inefficient anyway, because we only would have needed the first row in the result. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
@ -108,10 +108,6 @@ sub build_GET {
|
||||
|
||||
# If this is an aggregate build, get its constituents.
|
||||
$c->stash->{constituents} = [$c->stash->{build}->constituents_->search({}, {order_by => ["job"]})];
|
||||
|
||||
$c->stash->{isChannel} = $c->stash->{build}->buildproducts->search(
|
||||
{type => "channel"}
|
||||
)->count > 0;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user