From: Vincent Vanwaelscappel Date: Mon, 27 Jun 2022 15:43:55 +0000 (+0200) Subject: wip #5319 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=20aba8c4278aecd8dc1aa0ac87cbbcff93300dd1;p=cubist_cms-back.git wip #5319 @0.25 --- diff --git a/src/app/Magic/Fields/Field.php b/src/app/Magic/Fields/Field.php index 6263b30..cc35ca3 100644 --- a/src/app/Magic/Fields/Field.php +++ b/src/app/Magic/Fields/Field.php @@ -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,