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

@ -116,6 +116,10 @@ class ProjectController extends PHPCI\Controller
$email = $_SESSION['phpci_user']->getEmail();
$build = $this->buildService->createBuild($project, null, urldecode($branch), $email);
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;