Fix latest-finished

This commit is contained in:
Eelco Dolstra
2016-03-02 18:06:20 +01:00
parent 232ca8fea2
commit e7655fdcbc
6 changed files with 2 additions and 5 deletions

View File

@ -148,7 +148,6 @@ sub channels_tab : Chained('jobsetChain') PathPart('channels-tab') Args(0) {
# Hydra::Base::Controller::ListBuilds needs this.
sub get_builds : Chained('jobsetChain') PathPart('') CaptureArgs(0) {
my ($self, $c) = @_;
requireLocalStore($c);
$c->stash->{allBuilds} = $c->stash->{jobset}->builds;
$c->stash->{latestSucceeded} = $c->model('DB')->resultset('LatestSucceededForJobset')
->search({}, {bind => [$c->stash->{project}->name, $c->stash->{jobset}->name]});