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 6
6
*/
7
7
namespace Magento \Backend \Controller \Adminhtml \System \Design ;
8
8
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
10
15
{
11
16
/**
12
17
* Filtering posted data. Converting localized data if needed
@@ -26,6 +31,8 @@ protected function _filterPostData($data)
26
31
}
27
32
28
33
/**
34
+ * Save design action.
35
+ *
29
36
* @return \Magento\Backend\Model\View\Result\Redirect
30
37
*/
31
38
public function execute ()
@@ -54,10 +61,10 @@ public function execute()
54
61
} catch (\Exception $ e ) {
55
62
$ this ->messageManager ->addErrorMessage ($ e ->getMessage ());
56
63
$ 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 ()]);
58
65
}
59
66
}
60
67
61
- return $ resultRedirect ->setPath ('adminhtml /*/ ' );
68
+ return $ resultRedirect ->setPath ('* /*/ ' );
62
69
}
63
70
}
You can’t perform that action at this time.
0 commit comments