]> _ Git - cubist_cms-back.git/commitdiff
#2783
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 7 Jun 2019 11:10:53 +0000 (13:10 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 7 Jun 2019 11:10:53 +0000 (13:10 +0200)
src/app/Magic/Controllers/CubistMagicControllerTrait.php
src/app/Magic/Models/CubistMagicAbstractModel.php

index 19d72cb3fe44d6b73f1e49006394fa2d2a189a05..b58b33ebfd88fa5a9638dd1b0dde46ae8c159262 100644 (file)
@@ -20,7 +20,7 @@ trait CubistMagicControllerTrait
         if ($this->_clonable) {
             $this->crud->allowAccess('clone');
         }
-//        $this->crud->allowAccess('revisions');
+        $this->crud->allowAccess('revisions');
 //        $this->crud->with('revisionHistory');
 
 
@@ -50,7 +50,7 @@ trait CubistMagicControllerTrait
 
         $model = $this->getModelInstance();
 
-         $this->crud->addColumn(['name' => $model->getPrimaryKey(), 'type' => 'number', 'label' => "#"]);
+        $this->crud->addColumn(['name' => $model->getPrimaryKey(), 'type' => 'number', 'label' => "#"]);
 
         foreach ($model->getFields() as $field) {
             $this->addField($field);
index 25664e1e0c98de079da5ba9c7a08f51ae81debc9..c9b43943abf83a5c1e10729ba0b081cd09b9463f 100644 (file)
@@ -63,6 +63,11 @@ class CubistMagicAbstractModel extends Model
      */
     protected $_relationships = [];
 
+    public static function boot()
+    {
+        parent::boot();
+    }
+
     public function __construct(array $attributes = [])
     {
         $this->setFields();