Skip to content

Commit 77a45a8

Browse files
committed
Convert array of street lines to the string even if it was empty
1 parent 5d5cb9d commit 77a45a8

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
@@ -268,7 +268,7 @@ public function setData($key, $value = null)
268268
{
269269
if (is_array($key)) {
270270
$key = $this->_implodeArrayField($key);
271-
} elseif (is_array($value) && !empty($value) && $this->isAddressMultilineAttribute($key)) {
271+
} elseif (is_array($value) && $this->isAddressMultilineAttribute($key)) {
272272
$value = $this->_implodeArrayValues($value);
273273
}
274274
return parent::setData($key, $value);

0 commit comments

Comments
 (0)