diff --git a/Controller/Adminhtml/Address/Region.php b/Controller/Adminhtml/Address/Region.php index 9d7fcfba..aa7c51ad 100644 --- a/Controller/Adminhtml/Address/Region.php +++ b/Controller/Adminhtml/Address/Region.php @@ -6,7 +6,7 @@ namespace ClassyLlama\AvaTax\Controller\Adminhtml\Address; use Magento\Directory\Helper\Data as DirectoryHelper; -use Magento\Framework\App\Action\Context; +use Magento\Framework\App\Action\HttpGetActionInterface; use Magento\Framework\Controller\Result\JsonFactory; use Magento\Framework\Escaper; @@ -16,7 +16,7 @@ /** * @codeCoverageIgnore */ -class Region extends \Magento\Framework\App\Action\Action +class Region implements HttpGetActionInterface { /** * @var array @@ -40,17 +40,14 @@ class Region extends \Magento\Framework\App\Action\Action /** * @param DirectoryHelper $directoryHelper - * @param Context $context * @param JsonFactory $resultJsonFactory * @param Escaper $escaper */ public function __construct( DirectoryHelper $directoryHelper, - Context $context, JsonFactory $resultJsonFactory, Escaper $escaper = null ) { - parent::__construct($context); $this->resultJsonFactory = $resultJsonFactory; $this->escaper = $escaper; $this->directoryHelper = $directoryHelper; diff --git a/view/adminhtml/web/js/model/region-model.js b/view/adminhtml/web/js/model/region-model.js index 8cd24dbc..b37a2e8d 100644 --- a/view/adminhtml/web/js/model/region-model.js +++ b/view/adminhtml/web/js/model/region-model.js @@ -21,7 +21,7 @@ define( this.regions = $.ajax({ showLoader: false, url: url, - type: "POST", + type: "GET", dataType: 'json', success: function (response) { return response;