From b82bf3928a9ed34c944f85a152014c1e63bbffcc Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 4 Feb 2019 19:28:47 +0530 Subject: [PATCH 1/3] Fixed redirection issue in Admin Sontent Schedule --- .../Backend/Controller/Adminhtml/System/Design/Save.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php b/app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php index 0228b48f7f11e..01498d939b310 100644 --- a/app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php +++ b/app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php @@ -54,10 +54,10 @@ public function execute() } catch (\Exception $e) { $this->messageManager->addErrorMessage($e->getMessage()); $this->_objectManager->get(\Magento\Backend\Model\Session::class)->setDesignData($data); - return $resultRedirect->setPath('adminhtml/*/', ['id' => $design->getId()]); + return $resultRedirect->setPath('*/*/edit', ['id' => $design->getId()]); } } - return $resultRedirect->setPath('adminhtml/*/'); + return $resultRedirect->setPath('*/*/'); } } From c59b2313757b63892a83723280566668ae24e54d Mon Sep 17 00:00:00 2001 From: Pavel Bystritsky Date: Tue, 5 Feb 2019 15:34:31 +0200 Subject: [PATCH 2/3] ENGCOM-4110: Static test fix. --- .../Backend/Controller/Adminhtml/System/Design/Save.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php b/app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php index 01498d939b310..25cfb61d658c3 100644 --- a/app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php +++ b/app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php @@ -6,7 +6,12 @@ */ namespace Magento\Backend\Controller\Adminhtml\System\Design; -class Save extends \Magento\Backend\Controller\Adminhtml\System\Design +use Magento\Framework\App\Action\HttpPostActionInterface; + +/** + * Save design action. + */ +class Save extends \Magento\Backend\Controller\Adminhtml\System\Design implements HttpPostActionInterface { /** * Filtering posted data. Converting localized data if needed @@ -26,6 +31,8 @@ protected function _filterPostData($data) } /** + * Save design action. + * * @return \Magento\Backend\Model\View\Result\Redirect */ public function execute() From e5afdb2956192c024c556e0c7e29bdfb72bcf1bd Mon Sep 17 00:00:00 2001 From: Sergii Ivashchenko Date: Wed, 13 Feb 2019 13:10:03 +0000 Subject: [PATCH 3/3] magento/magento2#21160: Adjusting ported pull request to 2.2 version --- .../Backend/Controller/Adminhtml/System/Design/Save.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php b/app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php index 25cfb61d658c3..a2a53f3f787e3 100644 --- a/app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php +++ b/app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php @@ -6,12 +6,10 @@ */ namespace Magento\Backend\Controller\Adminhtml\System\Design; -use Magento\Framework\App\Action\HttpPostActionInterface; - /** * Save design action. */ -class Save extends \Magento\Backend\Controller\Adminhtml\System\Design implements HttpPostActionInterface +class Save extends \Magento\Backend\Controller\Adminhtml\System\Design { /** * Filtering posted data. Converting localized data if needed