Skip to content

Commit eed3bc3

Browse files
committed
Reverted back the implemented interface and changed the client method
1 parent 130f1ae commit eed3bc3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function _construct()
5656
},
5757
loadProductData : function() {
5858
jQuery.ajax({
59-
type: "POST",
59+
type: "GET",
6060
url: review.productInfoUrl,
6161
data: {
6262
form_key: FORM_KEY

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
namespace Magento\Review\Controller\Adminhtml\Product;
77

8-
use Magento\Framework\App\Action\HttpPostActionInterface;
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
99
use Magento\Review\Controller\Adminhtml\Product as ProductController;
1010
use Magento\Backend\App\Action\Context;
1111
use Magento\Framework\Registry;
@@ -18,7 +18,7 @@
1818
/**
1919
* Represents product info in json
2020
*/
21-
class JsonProductInfo extends ProductController implements HttpPostActionInterface
21+
class JsonProductInfo extends ProductController implements HttpGetActionInterface
2222
{
2323
/**
2424
* @var \Magento\Catalog\Api\ProductRepositoryInterface

0 commit comments

Comments
 (0)