Skip to content

Commit d99c0b3

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

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

app/code/Magento/BundleImportExport/Model/Export/RowCustomizer.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,12 @@ private function parseAdditionalAttributes($additionalAttributes)
327327
$code = '';
328328
foreach ($attributeNameValuePairs as $attributeData) {
329329
//process case when attribute has ImportModel::DEFAULT_GLOBAL_MULTI_VALUE_SEPARATOR inside its value
330-
if (strpos($attributeData, ImportProductModel::PAIR_NAME_VALUE_SEPARATOR) === false) {
331-
if (!$code) {
332-
continue;
333-
}
330+
if (strpos($attributeData, ImportProductModel::PAIR_NAME_VALUE_SEPARATOR) === false && $code) {
334331
$preparedAttributes[$code] .= ImportModel::DEFAULT_GLOBAL_MULTI_VALUE_SEPARATOR . $attributeData;
335-
continue;
332+
} else {
333+
list($code, $value) = explode(ImportProductModel::PAIR_NAME_VALUE_SEPARATOR, $attributeData, 2);
334+
$preparedAttributes[$code] = $value;
336335
}
337-
list($code, $value) = explode(ImportProductModel::PAIR_NAME_VALUE_SEPARATOR, $attributeData, 2);
338-
$preparedAttributes[$code] = $value;
339336
}
340337
return $preparedAttributes;
341338
}

0 commit comments

Comments
 (0)