@@ -431,8 +431,7 @@ |
||
431 | 431 | $listItem = \Aimeos\MShop::create( $context, 'product' )->createListsItem(); |
432 | 432 | $item->addListItem( 'attribute', $listItem->setType( 'custom' ), $attrItem ); |
433 | 433 | } |
434 | - } |
|
435 | - else |
|
434 | + } else |
|
436 | 435 | { |
437 | 436 | if( ( $litem = $item->getListItem( 'attribute', 'custom', $attrItem->getId(), false ) ) !== null ) { |
438 | 437 | $item->deleteListItem( 'attribute', $litem ); |