Skip to content

Commit

Permalink
ENGCOM-4235: [Backport] Fixed redirection issue in Admin-> Content ->…
Browse files Browse the repository at this point in the history
… Schedule #21160
  • Loading branch information
sidolov authored Feb 13, 2019
2 parents 341e0d7 + b18bc64 commit 36cc4b8
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
*/
namespace Magento\Backend\Controller\Adminhtml\System\Design;

/**
* Save design action.
*/
class Save extends \Magento\Backend\Controller\Adminhtml\System\Design
{
/**
Expand All @@ -26,6 +29,8 @@ protected function _filterPostData($data)
}

/**
* Save design action.
*
* @return \Magento\Backend\Model\View\Result\Redirect
*/
public function execute()
Expand Down Expand Up @@ -54,10 +59,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('*/*/');
}
}

0 comments on commit 36cc4b8

Please sign in to comment.