add soft delete via muffin/trash to all product related tables
This commit is contained in:
@@ -141,6 +141,11 @@ class ProductCategoriesController extends AppController
|
||||
$productCategoriesTable = $this->getTable();
|
||||
|
||||
$productCategory = $productCategoriesTable->get($id);
|
||||
// $productCategoriesTable->behaviors()->get('Tree')->setConfig([
|
||||
// 'scope' => [
|
||||
// 'product_catalog_id' => $productCategory->product_catalog_id,
|
||||
// ],
|
||||
// ]);
|
||||
if ($productCategoriesTable->delete($productCategory)) {
|
||||
$this->Flash->success(__('The product category has been deleted.'));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user