Skip to content

Commit 7fc1fd5

Browse files
ENGCOM-920: [Backport 2.1] MAGETWO-59258: Override module-directory/etc/zip_codes.xml only the last code of a country gets include #14117
- Merge Pull Request #14117 from simpleadm/magento2:backport/2.1-MAGETWO-59258-zip-codes - Merged commits: 1. 4ddb336
2 parents e719669 + 4ddb336 commit 7fc1fd5

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/Directory/Model/Country/Postcode/Config

1 file changed

+4
-1
lines changed

app/code/Magento/Directory/Model/Country/Postcode/Config/Reader.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ class Reader extends \Magento\Framework\Config\Reader\Filesystem
1212
*
1313
* @var array
1414
*/
15-
protected $_idAttributes = ['/config/zip' => 'countryCode'];
15+
protected $_idAttributes = [
16+
'/config/zip' => 'countryCode',
17+
'/config/zip/codes/code' => 'id',
18+
];
1619

1720
/**
1821
* Construct the FileSystem Reader Class

0 commit comments

Comments
 (0)