Bug fixes
Signed-off-by: Dan Cryer <dan@block8.co.uk>
This commit is contained in:
parent
3cdaef8fa9
commit
4d0911f2a9
7 changed files with 71 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue