Skip to content

Commit 4ddb336

Browse files
committed
Backport of MAGETWO-59258: Override module-directory/etc/zip_codes.xml only the last code of a country gets include
1 parent e719669 commit 4ddb336

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)