This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree 4 files changed +11
-6
lines changed
dev/tests/integration/testsuite/Magento/Directory/Model/Country/Postcode
lib/internal/Magento/Framework/Locale 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 207
207
<zip countryCode =" JP" >
208
208
<codes >
209
209
<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 >
211
211
</codes >
212
212
</zip >
213
213
<zip countryCode =" JE" >
Original file line number Diff line number Diff line change @@ -206,13 +206,17 @@ define([
206
206
207
207
switch ( keyCode ) {
208
208
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
+ }
211
213
break ;
212
214
213
215
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
+ }
216
220
break ;
217
221
218
222
case $ . ui . keyCode . ESCAPE :
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public function getPostcodesDataProvider()
133
133
['countryId ' => 'IL ' , 'postcode ' => '12345 ' ],
134
134
['countryId ' => 'IT ' , 'postcode ' => '12345 ' ],
135
135
['countryId ' => 'JP ' , 'postcode ' => '123-4567 ' ],
136
- ['countryId ' => 'JP ' , 'postcode ' => '123 ' ],
136
+ ['countryId ' => 'JP ' , 'postcode ' => '1234567 ' ],
137
137
['countryId ' => 'JE ' , 'postcode ' => 'TY8 9PL ' ],
138
138
['countryId ' => 'KZ ' , 'postcode ' => '123456 ' ],
139
139
['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
74
74
'lv_LV ' , /*Latvian (Latvia)*/
75
75
'mk_MK ' , /*Macedonian (Macedonia)*/
76
76
'mn_Cyrl_MN ' , /*Mongolian (Mongolia)*/
77
+ 'ms_MY ' , /*Malaysian (Malaysia)*/
77
78
'ms_Latn_MY ' , /*Malaysian (Malaysia)*/
78
79
'nl_BE ' , /*Dutch (Belgium)*/
79
80
'nl_NL ' , /*Dutch (Netherlands)*/
You can’t perform that action at this time.
0 commit comments