Skip to content

Commit 02a01dc

Browse files
committed
MAGETWO-58976: [Magento Cloud] - Import issue with a multiselect option having special symbols (, and |)
1 parent 8801045 commit 02a01dc

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,8 @@ protected function collectRawData()
995995
}
996996

997997
/**
998+
* Wrap values with double quotes if "Fields Enclosure" option is enabled
999+
*
9981000
* @param string|array $value
9991001
* @return string|array
10001002
*/

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,6 +2532,8 @@ private function parseAttributesWithWrappedValues($attributesData)
25322532
}
25332533

25342534
/**
2535+
* Parse values of multiselect attributes depends on "Fields Enclosure" parameter
2536+
*
25352537
* @param string $values
25362538
* @return array
25372539
*/

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ protected function textValidation($attrCode, $type)
7272
}
7373

7474
/**
75+
* Check if value is valid attribute option
76+
*
7577
* @param string $attrCode
7678
* @param array $possibleOptions
7779
* @param string $value

0 commit comments

Comments
 (0)