Skip to content

Commit

Permalink
20.5.1 MNB-1966 Fix for Quebec not populating and added CSP whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
wsajosh committed Jan 17, 2022
1 parent 5188f7d commit e9c37ac
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG-PUBLIC.MD
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@ RIV-534 support Enhanced Checkout
MNB-1843 User submitted enhancement to refactor add new address UI. MNB-1789 Fix for street address becoming uneditable on Google API error


## 20.5.1 (2022-01-17)
MNB-1966 Fix for Quebec not populating and added CSP whitelist


4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@ RIV-534 support Enhanced Checkout
MNB-1843 User submitted enhancement to refactor add new address UI. MNB-1789 Fix for street address becoming uneditable on Google API error


## 20.5.1 (2022-01-17)
MNB-1966 Fix for Quebec not populating and added CSP whitelist


2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "shipperhq/module-address-autocomplete",
"description": "ShipperHQ Address Autocomplete Tool",
"type": "magento2-module",
"version": "20.5.0",
"version": "20.5.1",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
10 changes: 10 additions & 0 deletions src/etc/csp_whitelist.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Shipper HQ
~ Thanks to https://github.com/ProxiBlue for providing this file
~ @category ShipperHQ
~ @package shq
~ @copyright Copyright (c) 2022 Zowta LTD and Zowta LLC (http://www.ShipperHQ.com)
~ @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
~ @author ShipperHQ Team [email protected]
-->

<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
<policies>
<policy id="script-src">
Expand Down
1 change: 1 addition & 0 deletions src/view/frontend/web/js/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ define([
if (region == 'Québec') {
region = 'Quebec'
}

if (uiRegistry.get('checkout.steps.shipping-step.shippingAddress.shipping-address-fieldset.region_id')) {
var regionDomId = uiRegistry.get('checkout.steps.shipping-step.shippingAddress.shipping-address-fieldset.region_id').uid;
if ($('#'+regionDomId).length) {
Expand Down

0 comments on commit e9c37ac

Please sign in to comment.