From b3a7d7f1b52cf880f0c82eafb5a3b64b6c88fdea Mon Sep 17 00:00:00 2001 From: Yaroslav Rogoza Date: Sun, 29 Apr 2018 13:34:14 +0200 Subject: [PATCH] Temporary variable removed --- .../Magento/Catalog/Controller/Adminhtml/Category/Save.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/code/Magento/Catalog/Controller/Adminhtml/Category/Save.php b/app/code/Magento/Catalog/Controller/Adminhtml/Category/Save.php index 8555503bfa79d..384022f558dce 100644 --- a/app/code/Magento/Catalog/Controller/Adminhtml/Category/Save.php +++ b/app/code/Magento/Catalog/Controller/Adminhtml/Category/Save.php @@ -123,8 +123,7 @@ public function execute() return $resultRedirect->setPath('catalog/*/', ['_current' => true, 'id' => null]); } - $data['general'] = $this->getRequest()->getPostValue(); - $categoryPostData = $data['general']; + $categoryPostData = $this->getRequest()->getPostValue(); $isNewCategory = !isset($categoryPostData['entity_id']); $categoryPostData = $this->stringToBoolConverting($categoryPostData);