Skip to content

Commit 0455b94

Browse files
committed
20.6.1 MNB-2364 Resolve issue with Montreal not being populated as city
1 parent 823209f commit 0455b94

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

CHANGELOG-PUBLIC.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,7 @@ MNB-1966 Fix for Quebec not populating and added CSP whitelist
7373
MNB-574 Add support for placing house number after street name
7474

7575

76+
## 20.6.1 (2022-05-24)
77+
MNB-2364 Resolve issue with Montreal not being populated as city
78+
79+

CHANGELOG.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,7 @@ MNB-1966 Fix for Quebec not populating and added CSP whitelist
7373
MNB-574 Add support for placing house number after street name
7474

7575

76+
## 20.6.1 (2022-05-24)
77+
MNB-2364 Resolve issue with Montreal not being populated as city
78+
79+

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "shipperhq/module-address-autocomplete",
33
"description": "ShipperHQ Address Autocomplete Tool",
44
"type": "magento2-module",
5-
"version": "20.6.0",
5+
"version": "20.6.1",
66
"license": [
77
"OSL-3.0",
88
"AFL-3.0"

src/view/frontend/web/js/autocomplete.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ define(
133133
city = value;
134134
} else if (addressType === 'postal_town') {
135135
city = value;
136-
} else if (addressType === 'locality' && city === '') {
136+
} else if (addressType === 'locality' && (city === '' || value === 'Montréal')) {
137137
// Ignore if we are using one of other city values already.
138+
// MNB-2364 Google returns sublocality_level_1 for Montreal. Always want to use Montreal
138139
city = value;
139140
} else if (addressType === 'postal_code') {
140141
postcode = value;

0 commit comments

Comments
 (0)