Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Homepage|Fixed: Not all AbstractUnstablePackages have an associated B…
…uildEvent
  • Loading branch information
danij-deng committed Mar 13, 2012
1 parent 16c22ff commit 235c3f6
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -79,8 +79,11 @@ public function populateGraphTemplate(&$tpl)
$tpl['is_unstable'] = true;

$build = $FrontController->findPlugin('BuildRepository')->buildByUniqueId($this->buildId);
$tpl['build_startdate'] = date(DATE_ATOM, $build->startDate());
$tpl['build_uniqueid'] = $this->buildId;
if($build instanceof BuildEvent)
{
$tpl['build_startdate'] = date(DATE_ATOM, $build->startDate());
$tpl['build_uniqueid'] = $this->buildId;
}

$tpl['compile_loguri'] = $this->compileLogUri;
$tpl['compile_errorcount'] = $this->compileErrorCount;
Expand Down

0 comments on commit 235c3f6

Please sign in to comment.