Fix 'Can't locate object method "buildstepoutputs"'

Template::Toolkit braindamage strikes again. See
8f85fe67d4.
This commit is contained in:
Eelco Dolstra 2015-12-15 11:55:57 +01:00
parent b081133dcc
commit 29db16bc69
2 changed files with 4 additions and 3 deletions

View file

@ -94,7 +94,7 @@ sub build_GET {
} }
# Get the first eval of which this build was a part. # Get the first eval of which this build was a part.
($c->stash->{nrEvals}) = $c->stash->{build}->jobsetevals->search({ hasnewbuilds => 1 })->count; ($c->stash->{nrEvals}) = $build->jobsetevals->search({ hasnewbuilds => 1 })->count;
$c->stash->{eval} = getFirstEval($build); $c->stash->{eval} = getFirstEval($build);
$self->status_ok( $self->status_ok(
$c, $c,
@ -107,7 +107,9 @@ sub build_GET {
$c->stash->{otherEval} = $eval2 if defined $eval2; $c->stash->{otherEval} = $eval2 if defined $eval2;
# If this is an aggregate build, get its constituents. # If this is an aggregate build, get its constituents.
$c->stash->{constituents} = [$c->stash->{build}->constituents_->search({}, {order_by => ["job"]})]; $c->stash->{constituents} = [$build->constituents_->search({}, {order_by => ["job"]})];
$c->stash->{steps} = [$build->buildsteps->search({}, {order_by => "stepnr desc"})];
} }

View file

@ -6,7 +6,6 @@
[% [%
isAggregate = constituents.size > 0; isAggregate = constituents.size > 0;
steps = build.buildsteps.nsort('stepnr').reverse;
busy = 0; busy = 0;
FOR step IN steps; IF step.busy; busy = 1; END; END; FOR step IN steps; IF step.busy; busy = 1; END; END;
%] %]