File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
app/code/Magento/CatalogImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -2336,15 +2336,12 @@ private function parseAdditionalAttributes($additionalAttributes)
2336
2336
$ code = '' ;
2337
2337
foreach ($ attributeNameValuePairs as $ attributeData ) {
2338
2338
//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 ) {
2343
2340
$ 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 ;
2345
2344
}
2346
- list ($ code , $ value ) = explode (self ::PAIR_NAME_VALUE_SEPARATOR , $ attributeData , 2 );
2347
- $ preparedAttributes [$ code ] = $ value ;
2348
2345
}
2349
2346
return $ preparedAttributes ;
2350
2347
}
You can’t perform that action at this time.
0 commit comments