From: Vincent Vanwaelscappel Date: Wed, 21 Feb 2024 16:35:48 +0000 (+0100) Subject: wait #6471 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0fcbf992adb5b06c61def4ce0c51c2b48eb7e39c;p=cubist_cms-back.git wait #6471 @0.25 --- diff --git a/src/app/Magic/Fields/SelectFromModel.php b/src/app/Magic/Fields/SelectFromModel.php index df91782..b4a6450 100644 --- a/src/app/Magic/Fields/SelectFromModel.php +++ b/src/app/Magic/Fields/SelectFromModel.php @@ -22,6 +22,8 @@ class SelectFromModel extends Model protected $_order = false; protected $_allows_null = false; + protected $_filterType = 'dropdown'; + protected $_ajax = true; diff --git a/src/app/Magic/Models/ExternalServer.php b/src/app/Magic/Models/ExternalServer.php index 093726a..6fcbf38 100644 --- a/src/app/Magic/Models/ExternalServer.php +++ b/src/app/Magic/Models/ExternalServer.php @@ -33,7 +33,7 @@ class ExternalServer extends CubistMagicAbstractModel implements IServer $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', Text::class, __('URL de base'), ['default' => 'https://', 'column' => true]); + $this->addField('base_url', Text::class, __('URL de base'), ['default' => 'https://', 'column' => true, 'column_function_name' => 'getBaseURL']); } public static function getAllServers()