]> _ Git - cubist_cms-back.git/commitdiff
#2843
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 2 Jul 2019 14:04:24 +0000 (16:04 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 2 Jul 2019 14:04:24 +0000 (16:04 +0200)
src/app/Magic/Controllers/CubistMagicController.php
src/app/Magic/Models/CMSPage.php

index d681e576e5c77433311b2e99bfd7397f8c4f086e..ae7ea9bcca04290206eac3c1888ae67fa12f9242 100644 (file)
@@ -64,7 +64,7 @@ class CubistMagicController extends CubistCrudController
 
         if($this->_nested){
             $this->crud->allowAccess('reorder');
-            $this->crud->enableReorder('name', 2);
+            $this->crud->enableReorder('name', 4);
         }
 
 //        $this->crud->with('revisionHistory');
index 074c4b262b4be7fe3cbbaa660e9e7a74454400b2..84b89b5602f4aef485e8dc1c42eb42351fee92a0 100644 (file)
@@ -48,13 +48,14 @@ class CMSPage extends CubistMagicNestedModel
 
     protected function _common()
     {
-        $this->addFakeField([
+        $this->addField([
             'name' => 'status',
             'type' => 'SelectFromArray',
             'default' => '0',
             'label' => __('Status'),
             'options' => ['0' => __('Offline'), '1' => __('Published')],
             'translatable' => true,
+            'column' => true,
             'tab' => 'Informations principales',
         ]);
     }
@@ -123,6 +124,6 @@ class CMSPage extends CubistMagicNestedModel
     public function update(array $attributes = [], array $options = [])
     {
 
-       return parent::update($attributes, $options);
+        return parent::update($attributes, $options);
     }
 }