Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

for for https://github.com/Iazel/magento2-regenurl/issues/19 #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public function execute(InputInterface $inp, OutputInterface $out)
$list = $this->collection->load();
foreach($list as $product)
{
if($store_id === Store::DEFAULT_STORE_ID)
// fix for #19 - also appears to relate to https://github.com/Iazel/magento2-regenurl/pull/6/commits/179a2e21ee84d9455debf408ad751a5350d2c414
if($store_id !== Store::DEFAULT_STORE_ID)
$product->setStoreId($store_id);

$this->urlPersist->deleteByData([
Expand Down