Make sure we always show the correct error count on the build errors tab.
This commit is contained in:
parent
77e9710d09
commit
49db1a26ba
2 changed files with 24 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ class BuildController extends \PHPCI\Controller
|
|||
$errorView->build = $build;
|
||||
$errorView->errors = $errors;
|
||||
|
||||
$data['errors'] = count($errors);
|
||||
$data['errors'] = $errorStore->getErrorTotalForBuild($build->getId());
|
||||
$data['error_html'] = $errorView->render();
|
||||
$data['since'] = (new \DateTime())->format('Y-m-d H:i:s');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue