We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d07ff3 + b4356e4 commit 14a03dcCopy full SHA for 14a03dc
app/code/Magento/Review/Controller/Product/ListAjax.php
@@ -1,7 +1,7 @@
1
<?php
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details.
+ * Copyright 2011 Adobe
+ * All Rights Reserved.
5
*/
6
7
namespace Magento\Review\Controller\Product;
@@ -22,7 +22,9 @@ class ListAjax extends ProductController implements HttpGetActionInterface
22
23
public function execute()
24
{
25
- if (!$this->initProduct()) {
+ if (!$this->getRequest()->isAjax() ||
26
+ !$this->initProduct()
27
+ ) {
28
/** @var \Magento\Framework\Controller\Result\Forward $resultForward */
29
$resultForward = $this->resultFactory->create(ResultFactory::TYPE_FORWARD);
30
return $resultForward->forward('noroute');
0 commit comments