From 25b0343b34d5dcc0d038e1ac424a66412ab26ec6 Mon Sep 17 00:00:00 2001 From: dmanners Date: Thu, 7 Sep 2017 12:10:36 +0000 Subject: [PATCH] Remove the usage of the DataObject for response management in the app/code/Magento/Catalog/Controller/Adminhtml/Category/Validate.php --- .../Catalog/Controller/Adminhtml/Category/Validate.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/code/Magento/Catalog/Controller/Adminhtml/Category/Validate.php b/app/code/Magento/Catalog/Controller/Adminhtml/Category/Validate.php index 921fdb6198d4e..4eda49068ac3a 100644 --- a/app/code/Magento/Catalog/Controller/Adminhtml/Category/Validate.php +++ b/app/code/Magento/Catalog/Controller/Adminhtml/Category/Validate.php @@ -36,11 +36,8 @@ public function __construct( */ public function execute() { - $response = new \Magento\Framework\DataObject(); - $response->setError(0); - $resultJson = $this->resultJsonFactory->create(); - $resultJson->setData($response); + $resultJson->setData(['error' => 0]); return $resultJson; }