Don't mess w/ default ports when configuration a database connection

This commit is contained in:
Eric Lippmann 2015-09-07 16:57:43 +02:00
parent e8c21868ff
commit e45140dd86
1 changed files with 1 additions and 2 deletions

View File

@ -80,8 +80,7 @@ class DbResourceForm extends Form
array(
'preserveDefault' => true,
'label' => $this->translate('Port'),
'description' => $this->translate('The port to use'),
'value' => ! array_key_exists('db', $formData) || $formData['db'] === 'mysql' ? 3306 : 5432
'description' => $this->translate('The port to use')
)
);
$this->addElement(