KickstartController: do not fail on missing schema

This commit is contained in:
Thomas Gelf 2017-01-16 11:01:17 +01:00
parent 303e107f15
commit b26b209b06
1 changed files with 8 additions and 4 deletions

View File

@ -10,9 +10,13 @@ class KickstartController extends DashboardController
public function indexAction()
{
$this->singleTab($this->view->title = $this->translate('Kickstart'));
$this->view->form = $this
->loadForm('kickstart')
->setEndpoint($this->db()->getDeploymentEndpoint())
->handleRequest();
$form = $this->view->form = $this->loadForm('kickstart');
try {
$form->setEndpoint($this->db()->getDeploymentEndpoint());
} catch (Exception $e) {
// Silently ignore DB errors
}
$form->handleRequest();
}
}