From: Vincent Vanwaelscappel Date: Wed, 29 May 2019 18:17:11 +0000 (+0200) Subject: #2783 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fca58d4bbd2f3f882babb85c403900fb0db51cc0;p=cubist_cms-back.git #2783 --- diff --git a/src/app/Magic/Fields/Checkbox.php b/src/app/Magic/Fields/Checkbox.php index 722b327..ce26437 100644 --- a/src/app/Magic/Fields/Checkbox.php +++ b/src/app/Magic/Fields/Checkbox.php @@ -8,5 +8,5 @@ class Checkbox extends Field { protected $_adminType = 'checkbox'; protected $_databaseType = 'boolean'; - + protected $_columnType = 'check'; } diff --git a/src/app/Magic/Fields/Field.php b/src/app/Magic/Fields/Field.php index 0193bf3..b7d5652 100644 --- a/src/app/Magic/Fields/Field.php +++ b/src/app/Magic/Fields/Field.php @@ -18,7 +18,7 @@ class Field protected $_databaseType = 'text'; protected $_databaseUnique = false; protected $_databaseIndex = false; - protected $_translatable = true; + protected $_translatable = false; protected $_databaseAttributes = []; /** @@ -62,7 +62,8 @@ class Field public function getDefaultAttributes() { return ['type' => $this->_adminType, 'column' => false, 'form' => 'both', 'rules' => '', - 'fillable' => true, 'guarded' => false, 'hidden' => false, 'translatable' => $this->_translatable]; + 'fillable' => true, 'guarded' => false, 'hidden' => false, 'translatable' => $this->_translatable, + 'column_type' => 'text']; } public function __construct($attributes)