Added missing $plugins to the view
added $view->plugins
This commit is contained in:
parent
3b18f477a0
commit
e037f063aa
|
@ -32,10 +32,10 @@ class BuildController extends b8\Controller
|
|||
public function view($buildId)
|
||||
{
|
||||
$build = $this->_buildStore->getById($buildId);
|
||||
|
||||
$view = new b8\View('Build');
|
||||
$view->build = $build;
|
||||
$view->data = $this->getBuildData($buildId);
|
||||
$view->plugins = $build->getPlugins();
|
||||
|
||||
return $view->render();
|
||||
}
|
||||
|
@ -62,6 +62,7 @@ class BuildController extends b8\Controller
|
|||
$data['created'] = !is_null($build->getCreated()) ? $build->getCreated()->format('Y-m-d H:i:s') : null;
|
||||
$data['started'] = !is_null($build->getStarted()) ? $build->getStarted()->format('Y-m-d H:i:s') : null;
|
||||
$data['finished'] = !is_null($build->getFinished()) ? $build->getFinished()->format('Y-m-d H:i:s') : null;
|
||||
$data['plugins'] = $build->getPlugins();
|
||||
|
||||
return json_encode($data);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue