Skip to content

Commit 861cb3b

Browse files
committed
BUG#AC-2535: Url rewrites are all removed when mass updating visibility on store view when set to not visible indivudually
1 parent 6375772 commit 861cb3b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/code/Magento/CatalogUrlRewrite/Model/Products/AdaptUrlRewritesToVisibilityAttribute.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public function __construct(
7070
*/
7171
public function execute(array $productIds, int $visibility, int $storeId): void
7272
{
73-
echo'afdsdv'; var_dump($storeId);
7473
$products = $this->getProductsByIds($productIds, $storeId);
7574

7675
/** @var Product $product */

dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Observer/ProcessUrlRewriteOnChangeVisibilityObserverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function testMakeProductInvisibleViaMassAction()
100100
[
101101
'attributes_data' => [ ProductInterface::VISIBILITY => Visibility::VISIBILITY_NOT_VISIBLE ],
102102
'product_ids' => [$product->getId()],
103-
'store_id' => $firstStore
103+
'store_id' => $firstStore,
104104
]
105105
);
106106

0 commit comments

Comments
 (0)