|
@@ -562,9 +562,11 @@ |
|
|
block discarded – undo |
|
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'] ?? '[]' ) ?: []; |
|
569
|
571
|
|
|
570
|
572
|
$product = $product->fromArray( $map[0], true ); |
Please login to merge, or discard this patch.