Fixing incorrect method call BuildService::delete() and making the project page reload when a build is deleted. Fixes #528

This commit is contained in:
Dan Cryer 2014-07-29 15:07:26 +01:00
parent fa1fd4038a
commit 46c03e030e
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -20,7 +20,7 @@ function bindAppDeleteEvents () {
e.preventDefault();
confirmDelete(e.target.href, 'Build').onClose = function () {
refreshBuildsTable();
window.location.reload();
};
return false;