File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
app/code/Magento/CustomerImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -535,6 +535,15 @@ protected function _prepareDataForUpdate(array $rowData)
535
535
} elseif ('datetime ' == $ attributeParams ['type ' ]) {
536
536
$ value = (new \DateTime ())->setTimestamp (strtotime ($ rowData [$ attributeAlias ]));
537
537
$ value = $ value ->format (\Magento \Framework \Stdlib \DateTime::DATETIME_PHP_FORMAT );
538
+ } elseif ('multiselect ' == $ attributeParams ['type ' ]) {
539
+ $ separator = isset ($ this ->_parameters [Import::FIELD_FIELD_MULTIPLE_VALUE_SEPARATOR ]) ?
540
+ $ this ->_parameters [Import::FIELD_FIELD_MULTIPLE_VALUE_SEPARATOR ] :
541
+ Import::DEFAULT_GLOBAL_MULTI_VALUE_SEPARATOR ;
542
+ $ value = str_replace (
543
+ $ separator ,
544
+ Import::DEFAULT_GLOBAL_MULTI_VALUE_SEPARATOR ,
545
+ $ rowData [$ attributeAlias ]
546
+ );
538
547
} else {
539
548
$ value = $ rowData [$ attributeAlias ];
540
549
}
You can’t perform that action at this time.
0 commit comments