Skip to content

Commit 03f7300

Browse files
committed
MAGETWO-54824: Can't save customer from admin if custom attribute is required and contains digit in code
1 parent f63b0a1 commit 03f7300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/Customer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public function updateData($customer)
335335
$customAttributes = $customer->getCustomAttributes();
336336
if ($customAttributes !== null) {
337337
foreach ($customAttributes as $attribute) {
338-
$this->setDataUsingMethod($attribute->getAttributeCode(), $attribute->getValue());
338+
$this->setData($attribute->getAttributeCode(), $attribute->getValue());
339339
}
340340
}
341341

0 commit comments

Comments
 (0)