From 2576f33029a9284c1648ad47d58579eedcf72fe3 Mon Sep 17 00:00:00 2001 From: Maks Rafalko Date: Mon, 15 Jul 2013 23:30:25 +0300 Subject: [PATCH] Added `exit` to correct redirect after `Rebuild` and `Delete build` is clicked Without `exit` it's not redirected. --- PHPCI/Controller/BuildController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PHPCI/Controller/BuildController.php b/PHPCI/Controller/BuildController.php index b41287aa..56bde07c 100644 --- a/PHPCI/Controller/BuildController.php +++ b/PHPCI/Controller/BuildController.php @@ -79,6 +79,7 @@ class BuildController extends \PHPCI\Controller $build = $this->_buildStore->save($build); header('Location: '.PHPCI_URL.'build/view/' . $build->getId()); + exit; } /** @@ -94,6 +95,7 @@ class BuildController extends \PHPCI\Controller $this->_buildStore->delete($build); header('Location: '.PHPCI_URL.'project/view/' . $build->getProjectId()); + exit; } /**