Make sure we always show the correct error count on the build errors tab.

This commit is contained in:
Dan Cryer 2016-04-27 16:40:55 +01:00
commit 49db1a26ba
No known key found for this signature in database
GPG key ID: 6030CBA5FE342813
2 changed files with 24 additions and 1 deletions

View file

@ -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');