From 20aba8c4278aecd8dc1aa0ac87cbbcff93300dd1 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 27 Jun 2022 17:43:55 +0200 Subject: [PATCH] wip #5319 @0.25 --- src/app/Magic/Fields/Field.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.39.5