Skip to content

Commit 2d99fde

Browse files
committed
MAGETWO-55156: [Backport] If custom text area attribute is created, you can't export bundle product. - for 2.0
1 parent d99c0b3 commit 2d99fde

File tree

1 file changed

+4
-7
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,15 +2336,12 @@ private function parseAdditionalAttributes($additionalAttributes)
23362336
$code = '';
23372337
foreach ($attributeNameValuePairs as $attributeData) {
23382338
//process case when attribute has ImportModel::DEFAULT_GLOBAL_MULTI_VALUE_SEPARATOR inside its value
2339-
if (strpos($attributeData, self::PAIR_NAME_VALUE_SEPARATOR) === false) {
2340-
if (!$code) {
2341-
continue;
2342-
}
2339+
if (strpos($attributeData, self::PAIR_NAME_VALUE_SEPARATOR) === false && $code) {
23432340
$preparedAttributes[$code] .= $this->getMultipleValueSeparator() . $attributeData;
2344-
continue;
2341+
} else {
2342+
list($code, $value) = explode(self::PAIR_NAME_VALUE_SEPARATOR, $attributeData, 2);
2343+
$preparedAttributes[$code] = $value;
23452344
}
2346-
list($code, $value) = explode(self::PAIR_NAME_VALUE_SEPARATOR, $attributeData, 2);
2347-
$preparedAttributes[$code] = $value;
23482345
}
23492346
return $preparedAttributes;
23502347
}

0 commit comments

Comments
 (0)