Skip to content

Commit a1f0cf1

Browse files
dannydnzsreichel
andauthored
Fix for catalog_product_relation not being deleted when option deleted. (#4395)
Co-authored-by: Sven Reichel <github-sr@hotmail.com>
1 parent 0b965e9 commit a1f0cf1

File tree

1 file changed

+1
-1
lines changed
  • app/code/core/Mage/Bundle/Model/Product

1 file changed

+1
-1
lines changed

app/code/core/Mage/Bundle/Model/Product/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public function save($product = null)
317317

318318
$selection['selection_id'] = $selectionModel->getSelectionId();
319319

320-
if ($selectionModel->getSelectionId()) {
320+
if ($selectionModel->getSelectionId() && !$selectionModel->isDeleted()) {
321321
$excludeSelectionIds[] = $selectionModel->getSelectionId();
322322
$usedProductIds[] = $selectionModel->getProductId();
323323
}

0 commit comments

Comments
 (0)