diff --git a/PHPCI/Controller/BuildController.php b/PHPCI/Controller/BuildController.php index 600c8508..fb9957cb 100644 --- a/PHPCI/Controller/BuildController.php +++ b/PHPCI/Controller/BuildController.php @@ -151,7 +151,7 @@ class BuildController extends \PHPCI\Controller throw new NotFoundException('Build with ID: ' . $buildId . ' does not exist.'); } - $this->buildService->delete($build); + $this->buildService->deleteBuild($build); header('Location: '.PHPCI_URL.'project/view/' . $build->getProjectId()); exit; diff --git a/public/assets/js/init.js b/public/assets/js/init.js index c851f648..0ef49c4f 100644 --- a/public/assets/js/init.js +++ b/public/assets/js/init.js @@ -20,7 +20,7 @@ function bindAppDeleteEvents () { e.preventDefault(); confirmDelete(e.target.href, 'Build').onClose = function () { - refreshBuildsTable(); + window.location.reload(); }; return false;