TransportConfigForm: Fix default port not changing upon auto-submit

This commit is contained in:
Johannes Meyer 2017-02-01 14:49:21 +01:00
parent 5a0e2ebd5a
commit 6a37583fc7
2 changed files with 10 additions and 8 deletions

View File

@ -36,10 +36,11 @@ class ApiTransportForm extends Form
'number',
'port',
array(
'required' => true,
'label' => $this->translate('Port'),
'description' => $this->translate('SSH port to connect to on the remote Icinga instance'),
'value' => 5665
'required' => true,
'preserveDefault' => true,
'label' => $this->translate('Port'),
'description' => $this->translate('SSH port to connect to on the remote Icinga instance'),
'value' => 5665
)
),
array(

View File

@ -145,10 +145,11 @@ class RemoteTransportForm extends Form
'number',
'port',
array(
'required' => true,
'label' => $this->translate('Port'),
'description' => $this->translate('SSH port to connect to on the remote Icinga instance'),
'value' => 22
'required' => true,
'preserveDefault' => true,
'label' => $this->translate('Port'),
'description' => $this->translate('SSH port to connect to on the remote Icinga instance'),
'value' => 22
)
)
));