Skip to content

Commit 9fb33f5

Browse files
author
Eric Bohanon
committed
MAGETWO-65667: Error Importing Customer multiselect attribute
- Integration test
1 parent e656993 commit 9fb33f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/ImportExport/Model/Import/Entity/AbstractEav.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,12 @@ public function getAttributeOptions(
225225
foreach ($attribute->getSource()->getAllOptions(false) as $option) {
226226
$value = is_array($option['value']) ? $option['value'] : [$option];
227227
foreach ($value as $innerOption) {
228+
// skip ' -- Please Select -- ' option
228229
if (strlen($innerOption['value'])) {
229-
// skip ' -- Please Select -- ' option
230230
if ($attribute->isStatic()) {
231231
$options[strtolower($innerOption[$index])] = $innerOption['value'];
232232
} else {
233+
// Non-static attributes flip keys an values
233234
$options[$innerOption['value']] = $innerOption[$index];
234235
}
235236
}

0 commit comments

Comments
 (0)