]> _ Git - cubist_cms-back.git/commitdiff
#2783
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 29 May 2019 18:17:11 +0000 (20:17 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 29 May 2019 18:17:11 +0000 (20:17 +0200)
src/app/Magic/Fields/Checkbox.php
src/app/Magic/Fields/Field.php

index 722b3273203cc66b63e5613fca38f9da3a879aa8..ce26437e19942844c1727326667ef7bfe4cf33e5 100644 (file)
@@ -8,5 +8,5 @@ class Checkbox extends Field
 {
     protected $_adminType = 'checkbox';
     protected $_databaseType = 'boolean';
-
+    protected $_columnType = 'check';
 }
index 0193bf3b049a2a72b7d075c65e3b3e5f37c6bc56..b7d5652b505c2838cdb40b0992cabacf53be1f59 100644 (file)
@@ -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)