|
@@ -530,9 +530,11 @@ |
|
|
block discarded – undo |
|
530
|
530
|
$map = $this->getMappedChunk( $list, $mapping ); |
|
531
|
531
|
$product = $products->get( trim( $code ) ) ?: $manager->create(); |
|
532
|
532
|
|
|
533
|
|
- if( isset( $map[0] ) ) // there can only be one chunk for the base product data |
|
|
533
|
+ if( isset( $map[0] ) ) { |
|
|
534
|
+ // there can only be one chunk for the base product data |
|
534
|
535
|
{ |
|
535
|
536
|
$type = $this->checkType( $this->val( $map[0], 'product.type', $product->getType() ) ); |
|
|
537
|
+ } |
|
536
|
538
|
$map[0]['product.config'] = json_decode( $map[0]['product.config'] ?? '[]', true ) ?: []; |
|
537
|
539
|
|
|
538
|
540
|
$product = $product->fromArray( $map[0], true ); |
Please login to merge, or discard this patch.