]> _ Git - cubist_cms-back.git/commitdiff
wip #6693 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 2 Feb 2024 12:22:30 +0000 (13:22 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 2 Feb 2024 12:22:30 +0000 (13:22 +0100)
src/app/Magic/Fields/CMSTemplate.php
src/app/Template/Undefined.php

index b17cc306ed3d1169eb443e62cfdf6f0eb8fb26f9..24a3d2b8dc0fb8319c86273bb1e2cbe55971303b 100644 (file)
@@ -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();
index c400dffd6f00cc1f0c9b28d65b7cbb996c233d92..bf79405e913ea671aad3e5b8d6526e30e3d7f4fd 100644 (file)
@@ -8,4 +8,9 @@ class Undefined extends TemplatePage
     {
         return true;
     }
+
+    public function getName()
+    {
+        return '** Indéfini';
+    }
 }