File tree 4 files changed +12
-4
lines changed
Controller/Adminhtml/Product 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \Review \Block \Adminhtml ;
7
8
8
9
/**
@@ -56,6 +57,7 @@ public function __construct(
56
57
*
57
58
* @return void
58
59
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
60
+ * @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
59
61
*/
60
62
protected function _construct ()
61
63
{
@@ -159,13 +161,13 @@ protected function _construct()
159
161
}
160
162
161
163
if ($ this ->getRequest ()->getParam ('ret ' , false ) == 'pending ' ) {
162
- $ this ->buttonList ->update ('back ' , 'onclick ' , 'setLocation( \'' . $ this ->getUrl ('catalog /*/pending ' ) . '\') ' );
164
+ $ this ->buttonList ->update ('back ' , 'onclick ' , 'setLocation( \'' . $ this ->getUrl ('review /*/pending ' ) . '\') ' );
163
165
$ this ->buttonList ->update (
164
166
'delete ' ,
165
167
'onclick ' ,
166
168
'deleteConfirm( ' . '\'' . __ (
167
169
'Are you sure you want to do this? '
168
- ) . '\' ' . '\'' . $ this ->getUrl (
170
+ ) . '\', ' . '\'' . $ this ->getUrl (
169
171
'*/*/delete ' ,
170
172
[$ this ->_objectId => $ this ->getRequest ()->getParam ($ this ->_objectId ), 'ret ' => 'pending ' ]
171
173
) . '\'' . ') '
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