diff --git a/modules/monitoring/application/forms/Config/Transport/ApiTransportForm.php b/modules/monitoring/application/forms/Config/Transport/ApiTransportForm.php index 3a54ef2e9..bd0aa11ba 100644 --- a/modules/monitoring/application/forms/Config/Transport/ApiTransportForm.php +++ b/modules/monitoring/application/forms/Config/Transport/ApiTransportForm.php @@ -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( diff --git a/modules/monitoring/application/forms/Config/Transport/RemoteTransportForm.php b/modules/monitoring/application/forms/Config/Transport/RemoteTransportForm.php index d46fa9a71..7beeacf8a 100644 --- a/modules/monitoring/application/forms/Config/Transport/RemoteTransportForm.php +++ b/modules/monitoring/application/forms/Config/Transport/RemoteTransportForm.php @@ -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 ) ) ));