]> _ Git - cubist_cms-back.git/commitdiff
wip #5319 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 Jun 2022 15:43:55 +0000 (17:43 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 Jun 2022 15:43:55 +0000 (17:43 +0200)
src/app/Magic/Fields/Field.php

index 6263b308593a116ac64f30c022143a0da300d956..cc35ca351306e3ab6754775356b9cc4d2b31013b 100644 (file)
@@ -33,6 +33,8 @@ class Field implements \ArrayAccess
     protected $_prefix = null;
     protected $_suffix = null;
 
+    protected $_default = null;
+
     protected $_placeholder = null;
     protected $_pattern = null;
 
@@ -147,7 +149,7 @@ class Field implements \ArrayAccess
             'translatable' => $this->_translatable, 'migrateTranslatable' => $this->_migrateTranslatable,
             'preview' => $this->_preview,
             'column_type' => $this->_columnType, 'column_move_after' => $this->_columnMoveAfter, 'column_format' => $this->_columnFormat, 'column_width' => 300, 'column_escape' => true,
-            'default' => null, 'cast' => $this->_cast, 'column_view_namespace' => $this->_columnViewNamespace, 'searchLogic' => $this->_searchLogic,
+            'default' => $this->_default, 'cast' => $this->_cast, 'column_view_namespace' => $this->_columnViewNamespace, 'searchLogic' => $this->_searchLogic,
             'allow_null' => true,
             'can' => $this->_can, 'can_write' => $this->_canWrite, 'auth' => $this->_auth,
             'database_type' => $this->_databaseType, 'database_unique' => $this->_databaseUnique, 'database_index' => $this->_databaseIndex, 'database_default' => $this->_databaseDefault, 'database_length' => $this->_databaseLength,