File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
app/code/Magento/CustomerGraphQl Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public function validateData(array $addressData): void
111
111
$ errorInput = [];
112
112
113
113
//Add error for empty postcode with country with no optional ZIP
114
- if (!in_array ( $ addressData [ ' country_id ' ], $ this ->directoryData ->getCountriesWithOptionalZip () )
114
+ if (!$ this ->directoryData ->isZipCodeOptional ( $ addressData [ ' country_id ' ] )
115
115
&& (!isset ($ addressData ['postcode ' ]) || empty ($ addressData ['postcode ' ]))
116
116
) {
117
117
$ errorInput [] = 'postcode ' ;
Original file line number Diff line number Diff line change 4
4
"type" : " magento2-module" ,
5
5
"require" : {
6
6
"php" : " ~7.1.3||~7.2.0||~7.3.0" ,
7
- "magento/module-customer" : " *" ,
8
7
"magento/module-authorization" : " *" ,
9
8
"magento/module-customer" : " *" ,
10
9
"magento/module-eav" : " *" ,
11
10
"magento/module-graph-ql" : " *" ,
12
11
"magento/module-newsletter" : " *" ,
13
12
"magento/module-integration" : " *" ,
14
13
"magento/module-store" : " *" ,
15
- "magento/framework" : " *"
14
+ "magento/framework" : " *" ,
15
+ "magento/module-directory" : " *"
16
16
},
17
17
"license" : [
18
18
" OSL-3.0" ,
You can’t perform that action at this time.
0 commit comments