@@ -381,8 +381,7 @@ |
||
381 | 381 | $list['product.code'] = $list['product.code'] . '_' . substr( md5( microtime( true ) ), -5 ); |
382 | 382 | |
383 | 383 | $list['stock.stocklevel'] = 0; |
384 | - } |
|
385 | - else |
|
384 | + } else |
|
386 | 385 | { |
387 | 386 | $list = array_merge( $list, $refItem->getStockItems( 'default' )->first( map() )->toArray() ); |
388 | 387 | } |
@@ -315,7 +315,7 @@ |
||
315 | 315 | foreach( (array) $this->val( $entry, 'config', [] ) as $cfg ) |
316 | 316 | { |
317 | 317 | if( ( $key = trim( $cfg['key'] ?? '' ) ) !== '' && ( $val = trim( $cfg['val'] ?? '' ) ) !== '' ) { |
318 | - $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
318 | + $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
319 | 319 | } |
320 | 320 | } |
321 | 321 |
@@ -360,7 +360,7 @@ |
||
360 | 360 | foreach( (array) $this->val( $entry, 'config', [] ) as $cfg ) |
361 | 361 | { |
362 | 362 | if( ( $key = trim( $cfg['key'] ?? '' ) ) !== '' && ( $val = trim( $cfg['val'] ?? '' ) ) !== '' ) { |
363 | - $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
363 | + $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
364 | 364 | } |
365 | 365 | } |
366 | 366 |
@@ -309,7 +309,7 @@ |
||
309 | 309 | foreach( (array) $this->val( $entry, 'config', [] ) as $cfg ) |
310 | 310 | { |
311 | 311 | if( ( $key = trim( $cfg['key'] ?? '' ) ) !== '' && ( $val = trim( $cfg['val'] ?? '' ) ) !== '' ) { |
312 | - $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
312 | + $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
313 | 313 | } |
314 | 314 | } |
315 | 315 |
@@ -358,7 +358,7 @@ |
||
358 | 358 | foreach( (array) $this->val( $entry, 'config', [] ) as $cfg ) |
359 | 359 | { |
360 | 360 | if( ( $key = trim( $cfg['key'] ?? '' ) ) !== '' && ( $val = trim( $cfg['val'] ?? '' ) ) !== '' ) { |
361 | - $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
361 | + $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
362 | 362 | } |
363 | 363 | } |
364 | 364 |
@@ -309,7 +309,7 @@ |
||
309 | 309 | foreach( (array) $this->val( $entry, 'config', [] ) as $cfg ) |
310 | 310 | { |
311 | 311 | if( ( $key = trim( $cfg['key'] ?? '' ) ) !== '' && ( $val = trim( $cfg['val'] ?? '' ) ) !== '' ) { |
312 | - $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
312 | + $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
313 | 313 | } |
314 | 314 | } |
315 | 315 |
@@ -358,7 +358,7 @@ |
||
358 | 358 | foreach( (array) $this->val( $entry, 'config', [] ) as $cfg ) |
359 | 359 | { |
360 | 360 | if( ( $key = trim( $cfg['key'] ?? '' ) ) !== '' && ( $val = trim( $cfg['val'] ?? '' ) ) !== '' ) { |
361 | - $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
361 | + $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
362 | 362 | } |
363 | 363 | } |
364 | 364 |
@@ -309,7 +309,7 @@ |
||
309 | 309 | foreach( (array) $this->val( $entry, 'config', [] ) as $cfg ) |
310 | 310 | { |
311 | 311 | if( ( $key = trim( $cfg['key'] ?? '' ) ) !== '' && ( $val = trim( $cfg['val'] ?? '' ) ) !== '' ) { |
312 | - $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
312 | + $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
313 | 313 | } |
314 | 314 | } |
315 | 315 |
@@ -266,7 +266,7 @@ |
||
266 | 266 | foreach( (array) $this->val( $entry, 'config', [] ) as $cfg ) |
267 | 267 | { |
268 | 268 | if( ( $key = trim( $cfg['key'] ?? '' ) ) !== '' && ( $val = trim( $cfg['val'] ?? '' ) ) !== '' ) { |
269 | - $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
269 | + $listItem->setConfigValue( $key, json_decode( $val, true ) ?? $val ); |
|
270 | 270 | } |
271 | 271 | } |
272 | 272 |