We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fbdb4b commit 6ac4eb5Copy full SHA for 6ac4eb5
app/code/Magento/CustomerGraphQl/Model/Customer/Address/CreateCustomerAddress.php
@@ -110,10 +110,11 @@ public function validateData(array $addressData): void
110
$attributes = $this->getAllowedAddressAttributes->execute();
111
$errorInput = [];
112
113
+ //Add error for empty postcode with country with no optional ZIP
114
if (!in_array($addressData['country_id'], $this->directoryData->getCountriesWithOptionalZip())
115
&& (!isset($addressData['postcode']) || empty($addressData['postcode']))
116
) {
- $errorInput[] = $addressData['postcode'];
117
+ $errorInput[] = 'postcode';
118
}
119
120
foreach ($attributes as $attributeName => $attributeInfo) {
0 commit comments