This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
dev/tests/integration/testsuite/Magento/Directory/Model/Country/Postcode
lib/internal/Magento/Framework/Locale Expand file tree Collapse file tree Original file line number Diff line number Diff line change 207207 <zip countryCode =" JP" >
208208 <codes >
209209 <code id =" pattern_1" active =" true" example =" 123-4567" >^[0-9]{3}-[0-9]{4}$</code >
210- <code id =" pattern_2" active =" true" example =" 123 " >^[0-9]{3 }$</code >
210+ <code id =" pattern_2" active =" true" example =" 1234567 " >^[0-9]{7 }$</code >
211211 </codes >
212212 </zip >
213213 <zip countryCode =" JE" >
Original file line number Diff line number Diff line change @@ -206,13 +206,17 @@ define([
206206
207207 switch ( keyCode ) {
208208 case $ . ui . keyCode . HOME :
209- this . _getFirstVisibleElement ( ) . addClass ( this . options . selectClass ) ;
210- this . responseList . selected = this . _getFirstVisibleElement ( ) ;
209+ if ( this . _getFirstVisibleElement ( ) ) {
210+ this . _getFirstVisibleElement ( ) . addClass ( this . options . selectClass ) ;
211+ this . responseList . selected = this . _getFirstVisibleElement ( ) ;
212+ }
211213 break ;
212214
213215 case $ . ui . keyCode . END :
214- this . _getLastElement ( ) . addClass ( this . options . selectClass ) ;
215- this . responseList . selected = this . _getLastElement ( ) ;
216+ if ( this . _getLastElement ( ) ) {
217+ this . _getLastElement ( ) . addClass ( this . options . selectClass ) ;
218+ this . responseList . selected = this . _getLastElement ( ) ;
219+ }
216220 break ;
217221
218222 case $ . ui . keyCode . ESCAPE :
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public function getPostcodesDataProvider()
133133 ['countryId ' => 'IL ' , 'postcode ' => '12345 ' ],
134134 ['countryId ' => 'IT ' , 'postcode ' => '12345 ' ],
135135 ['countryId ' => 'JP ' , 'postcode ' => '123-4567 ' ],
136- ['countryId ' => 'JP ' , 'postcode ' => '123 ' ],
136+ ['countryId ' => 'JP ' , 'postcode ' => '1234567 ' ],
137137 ['countryId ' => 'JE ' , 'postcode ' => 'TY8 9PL ' ],
138138 ['countryId ' => 'KZ ' , 'postcode ' => '123456 ' ],
139139 ['countryId ' => 'KE ' , 'postcode ' => '12345 ' ],
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ class Config implements \Magento\Framework\Locale\ConfigInterface
7474 'lv_LV ' , /*Latvian (Latvia)*/
7575 'mk_MK ' , /*Macedonian (Macedonia)*/
7676 'mn_Cyrl_MN ' , /*Mongolian (Mongolia)*/
77+ 'ms_MY ' , /*Malaysian (Malaysia)*/
7778 'ms_Latn_MY ' , /*Malaysian (Malaysia)*/
7879 'nl_BE ' , /*Dutch (Belgium)*/
7980 'nl_NL ' , /*Dutch (Netherlands)*/
You can’t perform that action at this time.
0 commit comments