File tree 4 files changed +10
-4
lines changed
Controller/Adminhtml/Product 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -159,13 +159,13 @@ protected function _construct()
159
159
}
160
160
161
161
if ($ this ->getRequest ()->getParam ('ret ' , false ) == 'pending ' ) {
162
- $ this ->buttonList ->update ('back ' , 'onclick ' , 'setLocation( \'' . $ this ->getUrl ('catalog /*/pending ' ) . '\') ' );
162
+ $ this ->buttonList ->update ('back ' , 'onclick ' , 'setLocation( \'' . $ this ->getUrl ('review /*/pending ' ) . '\') ' );
163
163
$ this ->buttonList ->update (
164
164
'delete ' ,
165
165
'onclick ' ,
166
166
'deleteConfirm( ' . '\'' . __ (
167
167
'Are you sure you want to do this? '
168
- ) . '\' ' . '\'' . $ this ->getUrl (
168
+ ) . '\', ' . '\'' . $ this ->getUrl (
169
169
'*/*/delete ' ,
170
170
[$ this ->_objectId => $ this ->getRequest ()->getParam ($ this ->_objectId ), 'ret ' => 'pending ' ]
171
171
) . '\'' . ') '
Original file line number Diff line number Diff line change 9
9
use Magento \Framework \Controller \ResultFactory ;
10
10
use Magento \Framework \Exception \LocalizedException ;
11
11
12
+ /**
13
+ * Save Review action.
14
+ */
12
15
class Save extends ProductController
13
16
{
14
17
/**
18
+ * Save Review action.
19
+ *
15
20
* @return \Magento\Backend\Model\View\Result\Redirect
16
21
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
17
22
*/
@@ -63,7 +68,7 @@ public function execute()
63
68
if ($ nextId ) {
64
69
$ resultRedirect ->setPath ('review/*/edit ' , ['id ' => $ nextId ]);
65
70
} elseif ($ this ->getRequest ()->getParam ('ret ' ) == 'pending ' ) {
66
- $ resultRedirect ->setPath ('* /*/pending ' );
71
+ $ resultRedirect ->setPath ('review /*/pending ' );
67
72
} else {
68
73
$ resultRedirect ->setPath ('*/*/ ' );
69
74
}
Original file line number Diff line number Diff line change 17
17
<resource id =" Magento_Backend::marketing" >
18
18
<resource id =" Magento_Backend::marketing_user_content" >
19
19
<resource id =" Magento_Review::reviews_all" title =" Reviews" translate =" title" sortOrder =" 10" />
20
- <resource id =" Magento_Review::pending" title =" Reviews" translate =" title" sortOrder =" 20" />
20
+ <resource id =" Magento_Review::pending" title =" Pending Reviews" translate =" title" sortOrder =" 20" />
21
21
</resource >
22
22
</resource >
23
23
</resource >
Original file line number Diff line number Diff line change 9
9
<menu >
10
10
<add id =" Magento_Review::catalog_reviews_ratings_ratings" title =" Rating" translate =" title" module =" Magento_Review" sortOrder =" 60" parent =" Magento_Backend::stores_attributes" action =" review/rating/" resource =" Magento_Review::ratings" />
11
11
<add id =" Magento_Review::catalog_reviews_ratings_reviews_all" title =" Reviews" translate =" title" module =" Magento_Review" parent =" Magento_Backend::marketing_user_content" sortOrder =" 10" action =" review/product/index" resource =" Magento_Review::reviews_all" />
12
+ <add id =" Magento_Review::catalog_reviews_ratings_pending" title =" Pending Reviews" translate =" title" module =" Magento_Review" parent =" Magento_Backend::marketing_user_content" sortOrder =" 15" action =" review/product/pending" resource =" Magento_Review::pending" />
12
13
<add id =" Magento_Review::report_review" title =" Reviews" translate =" title" module =" Magento_Reports" sortOrder =" 20" parent =" Magento_Reports::report" resource =" Magento_Reports::review" />
13
14
<add id =" Magento_Review::report_review_customer" title =" By Customers" translate =" title" sortOrder =" 10" module =" Magento_Review" parent =" Magento_Review::report_review" action =" reports/report_review/customer" resource =" Magento_Reports::review_customer" />
14
15
<add id =" Magento_Review::report_review_product" title =" By Products" translate =" title" sortOrder =" 20" module =" Magento_Review" parent =" Magento_Review::report_review" action =" reports/report_review/product" resource =" Magento_Reports::review_product" />
You can’t perform that action at this time.
0 commit comments