From: Vincent Vanwaelscappel Date: Tue, 2 Jul 2019 14:04:24 +0000 (+0200) Subject: #2843 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=957fa065a733a87c39c647142802931c2c933b58;p=cubist_cms-back.git #2843 --- diff --git a/src/app/Magic/Controllers/CubistMagicController.php b/src/app/Magic/Controllers/CubistMagicController.php index d681e57..ae7ea9b 100644 --- a/src/app/Magic/Controllers/CubistMagicController.php +++ b/src/app/Magic/Controllers/CubistMagicController.php @@ -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'); diff --git a/src/app/Magic/Models/CMSPage.php b/src/app/Magic/Models/CMSPage.php index 074c4b2..84b89b5 100644 --- a/src/app/Magic/Models/CMSPage.php +++ b/src/app/Magic/Models/CMSPage.php @@ -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); } }