When trying to override module-directory/etc/zip_codes.xml from a local module, only the last code of a country gets included.
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Directory:etc/zip_codes.xsd">
<zip countryCode="NL">
<codes>
<code id="pattern_1" active="true" example="1234 AB">^[0-9]{4}\s[a-zA-Z]{2}$</code>
<code id="pattern_2" active="true" example="1234AB">^[0-9]{4}[a-zA-Z]{2}$</code>
</codes>
</zip>
</config>
Internal ticket created MAGETWO-59258. Thanks for reporting.
The fix is delivered to develop branch. Closing the issue.
@SerhiyShkolyarenko Will Magetwo-59258 be included in 2.1.3?
Hi @luukschakenraad. Thank you for your report.
The issue has been fixed in magento/magento2#14117 by @simpleadm in 2.1-develop branch
Related commit(s):
The fix will be available with the upcoming 2.1.14 release.
Most helpful comment
Hi @luukschakenraad. Thank you for your report.
The issue has been fixed in magento/magento2#14117 by @simpleadm in 2.1-develop branch
Related commit(s):
The fix will be available with the upcoming 2.1.14 release.