Skip to content

Commit 0cf72d8

Browse files
ishakhsuvarovisitnikov
authored andcommitted
MAGETWO-50912: Custom Customer Attributes not saving at checkout
1 parent f690d0a commit 0cf72d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public function setData($key, $value = null)
263263
{
264264
if (is_array($key)) {
265265
$key = $this->_implodeArrayField($key);
266-
} elseif (is_array($value) && $this->isAddressMultilineAttribute($key)) {
266+
} elseif (is_array($value) && !empty($value) && $this->isAddressMultilineAttribute($key)) {
267267
$value = $this->_implodeArrayValues($value);
268268
}
269269
return parent::setData($key, $value);

0 commit comments

Comments
 (0)