Fixing incorrect method call BuildService::delete() and making the project page reload when a build is deleted. Fixes #528
This commit is contained in:
parent
04a1284117
commit
6421f1428e
|
@ -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;
|
||||
|
|
|
@ -20,7 +20,7 @@ function bindAppDeleteEvents () {
|
|||
e.preventDefault();
|
||||
|
||||
confirmDelete(e.target.href, 'Build').onClose = function () {
|
||||
refreshBuildsTable();
|
||||
window.location.reload();
|
||||
};
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue