From: Vincent Vanwaelscappel Date: Thu, 13 Feb 2025 18:20:53 +0000 (+0100) Subject: #7328 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6b194b761d598f95ed5a44ad38a42d5d80460c44;p=cubist_cms-back.git #7328 --- diff --git a/src/app/Magic/Models/ExternalServer.php b/src/app/Magic/Models/ExternalServer.php index fe693b3..2434e1f 100644 --- a/src/app/Magic/Models/ExternalServer.php +++ b/src/app/Magic/Models/ExternalServer.php @@ -28,7 +28,6 @@ class ExternalServer extends CubistMagicAbstractModel implements IServer $this->addField('name', Text::class, __('Nom'), ['column' => true]); $this->addField('protocol', SelectFromArray::class, __('Protocole'), ['options' => $this->getProtocols(), 'default' => 'SFTP', 'column' => true, 'allows_null' => false]); - $this->addField('ftp_mode', SelectFromArray::class, __('Mode de transfert'), ['options' => ['0' => __('Mode passif'), '1' => __('Mode actif')], 'default' => '1', 'when' => ['protocol' => $this->getFTPProtocols()], 'allows_null' => false,]); $this->addField('host', Text::class, __('Hôte'), ['default' => '', 'column' => true, 'column_label' => __('Serveur'), 'column_function_name' => 'getServerColumn', 'column_type' => 'model_function', 'when' => ['protocol' => $this->getHostProtocols()]]); $this->addField('port', Integer::class, __('Port'), ['hint' => __('Laisser vide pour utiliser le port par défaut'), 'default' => '', 'min' => 1, 'max' => 65536, 'when' => ['protocol' => $this->getPortProtocols()]]); $this->addField('username', Text::class, __('Nom d\'utilisateur'), ['when' => ['protocol' => $this->getUsernameProtocols()]]); @@ -202,7 +201,7 @@ class ExternalServer extends CubistMagicAbstractModel implements IServer public function getSettings() { - return ['ftp_mode' => $this->ftp_mode]; + return []; } public function makeURL($path)