From 6db40992465c869a3d1571968a0ac3700f9224e9 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 27 Aug 2024 08:49:24 -0400 Subject: [PATCH] fix: custom port handling in UI for FTP External Storage Signed-off-by: Josh --- apps/files_external/lib/Lib/Backend/FTP.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/files_external/lib/Lib/Backend/FTP.php b/apps/files_external/lib/Lib/Backend/FTP.php index 2093531789f82..cdf7d187b4da3 100644 --- a/apps/files_external/lib/Lib/Backend/FTP.php +++ b/apps/files_external/lib/Lib/Backend/FTP.php @@ -23,6 +23,8 @@ public function __construct(IL10N $l, Password $legacyAuth) { ->setText($l->t('FTP')) ->addParameters([ new DefinitionParameter('host', $l->t('Host')), + (new DefinitionParameter('port', $l->t('Port'))) + ->setFlag(DefinitionParameter::FLAG_OPTIONAL), (new DefinitionParameter('root', $l->t('Remote subfolder'))) ->setFlag(DefinitionParameter::FLAG_OPTIONAL), (new DefinitionParameter('secure', $l->t('Secure ftps://')))