File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
app/code/Magento/Backend/Controller/Adminhtml/System/Design Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 66 */
77namespace Magento \Backend \Controller \Adminhtml \System \Design ;
88
9- class Save extends \Magento \Backend \Controller \Adminhtml \System \Design
9+ use Magento \Framework \App \Action \HttpPostActionInterface ;
10+
11+ /**
12+ * Save design action.
13+ */
14+ class Save extends \Magento \Backend \Controller \Adminhtml \System \Design implements HttpPostActionInterface
1015{
1116 /**
1217 * Filtering posted data. Converting localized data if needed
@@ -26,6 +31,8 @@ protected function _filterPostData($data)
2631 }
2732
2833 /**
34+ * Save design action.
35+ *
2936 * @return \Magento\Backend\Model\View\Result\Redirect
3037 */
3138 public function execute ()
@@ -54,10 +61,10 @@ public function execute()
5461 } catch (\Exception $ e ) {
5562 $ this ->messageManager ->addErrorMessage ($ e ->getMessage ());
5663 $ this ->_objectManager ->get (\Magento \Backend \Model \Session::class)->setDesignData ($ data );
57- return $ resultRedirect ->setPath ('adminhtml /*/ ' , ['id ' => $ design ->getId ()]);
64+ return $ resultRedirect ->setPath ('* /*/edit ' , ['id ' => $ design ->getId ()]);
5865 }
5966 }
6067
61- return $ resultRedirect ->setPath ('adminhtml /*/ ' );
68+ return $ resultRedirect ->setPath ('* /*/ ' );
6269 }
6370}
You can’t perform that action at this time.
0 commit comments