File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed
Controller/Adminhtml/Product Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -159,13 +159,13 @@ protected function _construct()
159159 }
160160
161161 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 ' ) . '\') ' );
163163 $ this ->buttonList ->update (
164164 'delete ' ,
165165 'onclick ' ,
166166 'deleteConfirm( ' . '\'' . __ (
167167 'Are you sure you want to do this? '
168- ) . '\' ' . '\'' . $ this ->getUrl (
168+ ) . '\', ' . '\'' . $ this ->getUrl (
169169 '*/*/delete ' ,
170170 [$ this ->_objectId => $ this ->getRequest ()->getParam ($ this ->_objectId ), 'ret ' => 'pending ' ]
171171 ) . '\'' . ') '
Original file line number Diff line number Diff line change 1010use Magento \Framework \Controller \ResultFactory ;
1111use Magento \Framework \Exception \LocalizedException ;
1212
13+ /**
14+ * Save Review action.
15+ */
1316class Save extends ProductController implements HttpPostActionInterface
1417{
1518 /**
19+ * Save Review action.
20+ *
1621 * @return \Magento\Backend\Model\View\Result\Redirect
1722 * @SuppressWarnings(PHPMD.CyclomaticComplexity)
1823 */
@@ -64,7 +69,7 @@ public function execute()
6469 if ($ nextId ) {
6570 $ resultRedirect ->setPath ('review/*/edit ' , ['id ' => $ nextId ]);
6671 } elseif ($ this ->getRequest ()->getParam ('ret ' ) == 'pending ' ) {
67- $ resultRedirect ->setPath ('* /*/pending ' );
72+ $ resultRedirect ->setPath ('review /*/pending ' );
6873 } else {
6974 $ resultRedirect ->setPath ('*/*/ ' );
7075 }
Original file line number Diff line number Diff line change 1717 <resource id =" Magento_Backend::marketing" >
1818 <resource id =" Magento_Backend::marketing_user_content" >
1919 <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" />
2121 </resource >
2222 </resource >
2323 </resource >
Original file line number Diff line number Diff line change 99 <menu >
1010 <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" />
1111 <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 =" 20" action =" review/product/pending" resource =" Magento_Review::pending" />
1213 <add id =" Magento_Review::report_review" title =" Reviews" translate =" title" module =" Magento_Reports" sortOrder =" 20" parent =" Magento_Reports::report" resource =" Magento_Reports::review" />
1314 <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" />
1415 <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