From: Vincent Vanwaelscappel Date: Fri, 2 Feb 2024 12:22:30 +0000 (+0100) Subject: wip #6693 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=87200da6e9b4be43ad9b6f4093030aa45a6d491e;p=cubist_cms-back.git wip #6693 @0.5 --- diff --git a/src/app/Magic/Fields/CMSTemplate.php b/src/app/Magic/Fields/CMSTemplate.php index b17cc30..24a3d2b 100644 --- a/src/app/Magic/Fields/CMSTemplate.php +++ b/src/app/Magic/Fields/CMSTemplate.php @@ -13,6 +13,9 @@ class CMSTemplate extends SelectFromArray protected $_allowNull = false; protected $_translatable = false; + protected $_default = 'undefined'; + protected $_databaseDefault = 'undefined'; + public function getOptions() { $templates = TemplateAbstract::getTemplates(); diff --git a/src/app/Template/Undefined.php b/src/app/Template/Undefined.php index c400dff..bf79405 100644 --- a/src/app/Template/Undefined.php +++ b/src/app/Template/Undefined.php @@ -8,4 +8,9 @@ class Undefined extends TemplatePage { return true; } + + public function getName() + { + return '** Indéfini'; + } }