Skip to content

Commit bd08877

Browse files
author
Dmytro Voskoboinikov
committed
MAGETWO-53070: Can not unassign product from all websites
1 parent 2824ddc commit bd08877

File tree

1 file changed

+0
-3
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel

1 file changed

+0
-3
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,6 @@ public function delete($object)
315315
*/
316316
protected function _saveWebsiteIds($product)
317317
{
318-
// if (empty(array_diff($product->getWebsiteIds(), [0]))) {
319-
// $product->setWebsiteIds([1]);
320-
// }
321318
if ($this->_storeManager->isSingleStoreMode()) {
322319
$id = $this->_storeManager->getDefaultStoreView()->getWebsiteId();
323320
$product->setWebsiteIds([$id]);

0 commit comments

Comments
 (0)