]> _ Git - cubist_cms-back.git/commitdiff
#7328
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 13 Feb 2025 18:20:53 +0000 (19:20 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 13 Feb 2025 18:20:53 +0000 (19:20 +0100)
src/app/Magic/Models/ExternalServer.php

index fe693b3a689fcd7a6d74af9043ca02a0f93b4687..2434e1f4c3ccb917daa4864bd3ca2e0b4ee09b26 100644 (file)
@@ -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)