@@ -447,8 +447,7 @@ |
||
447 | 447 | $listItem = \Aimeos\MShop::create( $context, 'product' )->createListsItem(); |
448 | 448 | $item = $item->addListItem( 'attribute', $listItem->setType( 'custom' ), $attrItem ); |
449 | 449 | } |
450 | - } |
|
451 | - else |
|
450 | + } else |
|
452 | 451 | { |
453 | 452 | if( ( $litem = $item->getListItem( 'attribute', 'custom', $attrItem->getId(), false ) ) !== null ) { |
454 | 453 | $item = $item->deleteListItem( 'attribute', $litem ); |