Skip to content

Commit 4855c1e

Browse files
committed
MAGETWO-45173: Bundle product created using Web API isn't visible on Store front
1 parent cbe4333 commit 4855c1e

File tree

1 file changed

+2
-5
lines changed
  • app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Plugin

1 file changed

+2
-5
lines changed

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Plugin/Product.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ public function aroundSave(
2222
\Closure $proceed,
2323
\Magento\Framework\Model\AbstractModel $product
2424
) {
25-
$result = $proceed($product);
2625
$productResource->addCommitCallback(function () use ($product) {
2726
$this->reindexRow($product->getId());
2827
});
29-
30-
return $result;
28+
return $proceed($product);
3129
}
3230

3331
/**
@@ -44,10 +42,9 @@ public function aroundDelete(
4442
\Closure $proceed,
4543
\Magento\Framework\Model\AbstractModel $product
4644
) {
47-
$result = $proceed($product);
4845
$productResource->addCommitCallback(function () use ($product) {
4946
$this->reindexRow($product->getId());
5047
});
51-
return $result;
48+
return $proceed($product);
5249
}
5350
}

0 commit comments

Comments
 (0)