Skip to content

Commit 53fbce1

Browse files
author
Alex Bomko
committed
MAGETWO-44779: Issue with values for custom product attribute of type text area when product is updated via import
1 parent 7d47a61 commit 53fbce1

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2226,10 +2226,11 @@ private function _parseAdditionalAttributes($rowData)
22262226
$separatorPosition = strpos($attributeNameValuePair, self::PAIR_NAME_VALUE_SEPARATOR);
22272227
if ($separatorPosition !== false) {
22282228
$key = substr($attributeNameValuePair, 0, $separatorPosition);
2229-
$rowData[$key] = substr(
2229+
$value = substr(
22302230
$attributeNameValuePair,
22312231
$separatorPosition + strlen(self::PAIR_NAME_VALUE_SEPARATOR)
22322232
);
2233+
$rowData[$key] = $value === false ? '' : $value;
22332234
}
22342235
}
22352236
return $rowData;

0 commit comments

Comments
 (0)