From eaae628675894f6a9485faa4beaa6cbfc0ef5276 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 6 Jun 2019 15:41:03 +0200 Subject: [PATCH] #2810 --- src/app/Magic/Controllers/CubistMagicControllerTrait.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/Magic/Controllers/CubistMagicControllerTrait.php b/src/app/Magic/Controllers/CubistMagicControllerTrait.php index d90ccc3..52d6564 100644 --- a/src/app/Magic/Controllers/CubistMagicControllerTrait.php +++ b/src/app/Magic/Controllers/CubistMagicControllerTrait.php @@ -29,8 +29,13 @@ trait CubistMagicControllerTrait */ $this->crud->setModel($this->_modelNamespace); $this->_postSetModel(); - if($this->_bulk) { + if ($this->_bulk) { $this->crud->enableBulkActions(); + $this->crud->allowAccess('show'); + if ($this->_clonable) { + $this->crud->addButton('bottom', 'bulk_clone', 'view', 'crud::buttons.bulk_clone', 'beginning'); + } + $this->crud->addBulkDeleteButton(); } $this->crud->setRoute(config('backpack.base.route_prefix') . '/' . $this->_routeURL); $this->crud->setEntityNameStrings($this->_singular, $this->_plural); -- 2.39.5