Skip to content

Commit

Permalink
[SAPATOS-174] Magento Directory module patch - allow overriding multi…
Browse files Browse the repository at this point in the history
…ple zip code patterns in sub-modules

magento/magento2#6694

Applies to:
- 2.0.11+
- 2.1.*
  • Loading branch information
unicoder88 committed Dec 20, 2017
1 parent 89958d5 commit 582d259
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Patch-Magento_Directory_M2.1-zip-codes.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- Model/Country/Postcode/Config/Reader.php 2017-12-20 10:51:26.718397048 +0300
+++ Model/Country/Postcode/Config/Reader.php 2017-12-20 10:53:58.342135861 +0300
@@ -12,7 +12,10 @@
*
* @var array
*/
- protected $_idAttributes = ['/config/zip' => 'countryCode'];
+ protected $_idAttributes = [
+ '/config/zip' => 'countryCode',
+ '/config/zip/codes/code' => 'id',
+ ];

/**
* Construct the FileSystem Reader Class
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ Full example:
"magento/module-customer": {
"Fix: https://github.com/magento/magento2/pull/10582": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento_Customer-M2.1.9-array-street-line.patch"
},
"magento/module-directory": {
"Fix: https://github.com/magento/magento2/issues/6694": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento_Directory_M2.1-zip-codes.patch"
},
"magento/module-email": {
"https://github.com/magento/magento2/issues/5352": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento_Email-M2.1.0-create-email-logo-1.patch"
},
Expand Down

0 comments on commit 582d259

Please sign in to comment.