From: Vincent Vanwaelscappel Date: Tue, 5 Dec 2023 16:49:09 +0000 (+0100) Subject: wip #6555 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=97d7d3beca6724553edf3ffa52beafab8ef15db1;p=cubist_cms-back.git wip #6555 @0.25 --- diff --git a/src/app/Magic/Models/ExternalServer.php b/src/app/Magic/Models/ExternalServer.php index c28063b..d0761b0 100644 --- a/src/app/Magic/Models/ExternalServer.php +++ b/src/app/Magic/Models/ExternalServer.php @@ -27,13 +27,13 @@ class ExternalServer extends CubistMagicAbstractModel implements IServer $this->addField('name', Text::class, __('Nom'), ['column' => true]); $this->addField('protocol', SelectFromArray::class, __('Protocole'), ['options' => $this->getProtocols(), 'default' => 'FTP', '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->getPasswordProtocols()], '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, '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()]]); $this->addField('password', Password::class, __('Mot de passe'), ['when' => ['protocol' => $this->getPasswordProtocols()]]); $this->addField('base_path', Text::class, __('Chemin de base'), ['default' => '/']); - $this->addField('base_url', URL::class, __('URL de base'), ['default' => 'https://', 'column' => true]); + $this->addField('base_url', Text::class, __('URL de base'), ['default' => 'https://', 'column' => true]); } public static function getAllServers()