@@ -562,9 +562,11 @@ |
||
562 | 562 | |
563 | 563 | $map = $this->getMappedChunk( $list, $mapping ); |
564 | 564 | |
565 | - if( isset( $map[0] ) ) // there can only be one chunk for the base product data |
|
565 | + if( isset( $map[0] ) ) { |
|
566 | + // there can only be one chunk for the base product data |
|
566 | 567 | { |
567 | 568 | $type = $this->checkType( $this->getValue( $map[0], 'product.type', $product->getType() ) ); |
569 | + } |
|
568 | 570 | $map[0]['product.config'] = json_decode( $map[0]['product.config'] ?? '[]', true ) ?: []; |
569 | 571 | |
570 | 572 | $product = $product->fromArray( $map[0], true ); |