Bug fixes

Signed-off-by: Dan Cryer <dan@block8.co.uk>
This commit is contained in:
Dan Cryer 2016-06-23 11:28:42 +01:00
commit b536f972c2
7 changed files with 71 additions and 17 deletions

View file

@ -200,6 +200,10 @@ class BuildController extends \PHPCI\Controller
$build = $this->buildService->createDuplicateBuild($copy);
if ($this->buildService->queueError) {
$_SESSION['global_error'] = Lang::get('add_to_queue_failed');
}
$response = new b8\Http\Response\RedirectResponse();
$response->setHeader('Location', PHPCI_URL.'build/view/' . $build->getId());
return $response;