Skip to content

Commit 491c446

Browse files
ENGCOM-4096: Issue #20924 - fix Pending Reviews label, add menu for pending review… #20936
- Merge Pull Request #20936 from dankhrapiyush/magento2:2.3-develop-issue-20924 - Merged commits: 1. 01d68c6
2 parents 911a6e6 + 01d68c6 commit 491c446

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

app/code/Magento/Review/Block/Adminhtml/Edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
) . '\'' . ')'

app/code/Magento/Review/Controller/Adminhtml/Product/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function execute()
6464
if ($nextId) {
6565
$resultRedirect->setPath('review/*/edit', ['id' => $nextId]);
6666
} elseif ($this->getRequest()->getParam('ret') == 'pending') {
67-
$resultRedirect->setPath('*/*/pending');
67+
$resultRedirect->setPath('review/*/pending');
6868
} else {
6969
$resultRedirect->setPath('*/*/');
7070
}

app/code/Magento/Review/etc/acl.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
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>

app/code/Magento/Review/etc/adminhtml/menu.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
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"/>

0 commit comments

Comments
 (0)