mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-16 18:34:26 +02:00
Don't mess w/ default ports when configuration a database connection
This commit is contained in:
parent
e8c21868ff
commit
e45140dd86
@ -80,8 +80,7 @@ class DbResourceForm extends Form
|
|||||||
array(
|
array(
|
||||||
'preserveDefault' => true,
|
'preserveDefault' => true,
|
||||||
'label' => $this->translate('Port'),
|
'label' => $this->translate('Port'),
|
||||||
'description' => $this->translate('The port to use'),
|
'description' => $this->translate('The port to use')
|
||||||
'value' => ! array_key_exists('db', $formData) || $formData['db'] === 'mysql' ? 3306 : 5432
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user