Skip to content

Commit cc5c711

Browse files
Fixed wrong url redirect when edit product review from product view page (type casting to int)
1 parent 594badb commit cc5c711

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Review/Controller/Adminhtml/Product

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function execute()
7373
} else {
7474
$resultRedirect->setPath('*/*/');
7575
}
76-
$productId = $this->getRequest()->getParam('productId');
76+
$productId = (int)$this->getRequest()->getParam('productId');
7777
if ($productId) {
7878
$resultRedirect->setPath("catalog/product/edit/id/$productId");
7979
}

0 commit comments

Comments
 (0)