File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Controller/Adminhtml/Product Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
+ namespace Magento \Review \Block \Adminhtml \Edit ;
8
+
7
9
/**
8
10
* Adminhtml Review Edit Form
9
11
*/
10
- namespace Magento \Review \Block \Adminhtml \Edit ;
11
-
12
12
class Form extends \Magento \Backend \Block \Widget \Form \Generic
13
13
{
14
14
/**
@@ -84,7 +84,8 @@ protected function _prepareForm()
84
84
'review/*/save ' ,
85
85
[
86
86
'id ' => $ this ->getRequest ()->getParam ('id ' ),
87
- 'ret ' => $ this ->_coreRegistry ->registry ('ret ' )
87
+ 'ret ' => $ this ->_coreRegistry ->registry ('ret ' ),
88
+ 'productId ' => $ this ->getRequest ()->getParam ('productId ' )
88
89
]
89
90
),
90
91
'method ' => 'post ' ,
Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ public function execute()
73
73
} else {
74
74
$ resultRedirect ->setPath ('*/*/ ' );
75
75
}
76
+ $ productId = (int )$ this ->getRequest ()->getParam ('productId ' );
77
+ if ($ productId ) {
78
+ $ resultRedirect ->setPath ("catalog/product/edit/id/ $ productId " );
79
+ }
76
80
return $ resultRedirect ;
77
81
}
78
82
$ resultRedirect ->setPath ('review/*/ ' );
You can’t perform that action at this time.
0 commit comments