Skip to content

Commit 2699504

Browse files
authored
Merge pull request #105 from JerrySmidt/master
3.5.1
2 parents 996432a + 11c35b2 commit 2699504

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

Block/Checkout/AttributeMerger.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ class AttributeMerger extends BaseAttributeMerger
1818
* @param string $dataScopePrefix
1919
* @return array
2020
*/
21-
protected function getMultilineFieldConfig($attributeCode, array $attributeConfig, $providerName, $dataScopePrefix)
21+
protected function getMultilineFieldConfig($attributeCode, array $attributeConfig, $providerName, $dataScopePrefix): array
2222
{
2323
$config = parent::getMultilineFieldConfig($attributeCode, $attributeConfig, $providerName, $dataScopePrefix);
2424

2525
if ($attributeCode === 'street') {
26-
$config['component'] = 'Flekto_Postcode/js/form/components/street';
26+
// NB. collection component must end in '/group' or Magento's shipping rates validator will break.
27+
$config['component'] = 'Flekto_Postcode/js/form/components/street/group';
2728
$config['config']['template'] = 'Flekto_Postcode/group/street';
2829
}
2930

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Our module now supports GraphQL, allowing you to query address data via Magento'
6161

6262
## Compatibility
6363

64-
Although we can't guarantee compatibility with other checkout modules, our module works well with most one-step-checkout modules. If you are having issues and think this may be caused by our module, please [contact Postcode.nl]([email protected]) and tell us which other module(s) and version(s) are used.
64+
Although we can't guarantee compatibility with other checkout modules, our module works well with most one-step-checkout modules. If you are having issues and think this may be caused by our module, please [contact Postcode.nl](mailto:[email protected]) and tell us which other module(s) and version(s) are used.
6565

6666
If you found the solution already and have some code to contribute, feel free to open a pull request in this repository.
6767

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcode-nl/api-magento2-module",
3-
"version": "3.5.0",
3+
"version": "3.5.1",
44
"description": "Postcode.eu International Address API module for Magento 2. Adds autocompletion for addresses in multiple countries using official postal data.",
55
"require": {
66
"php": "^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.3 || ^8.4",

etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<default>
44
<postcodenl_api>
55
<status>
6-
<module_version>3.5.0</module_version>
6+
<module_version>3.5.1</module_version>
77
<account_status>new</account_status>
88
</status>
99
<general>

view/frontend/web/js/form/components/street.js renamed to view/frontend/web/js/form/components/street/group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ define([
2323

2424
asyncSetValues: function (...args) {
2525
const lastChildIndex = this.initChildCount - 1,
26-
values = args.slice(0, lastChildIndex);
26+
values = args.slice(0, lastChildIndex);
2727

2828
// Join remaining args for last or single child.
2929
values.push(args.slice(lastChildIndex).join(' ').trim());

0 commit comments

Comments
 (0)