Skip to content

Commit c190574

Browse files
committed
ACP2E-1754: Store level URL rewrites are removed after product import
1 parent 918a86e commit c190574

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/CatalogUrlRewrite/Observer/AfterImportDataObserver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use Magento\Framework\Event\Observer;
2929
use Magento\Framework\Event\ObserverInterface;
3030
use Magento\Framework\Exception\LocalizedException;
31+
use Magento\Framework\EntityManager\MetadataPool;
3132
use Magento\ImportExport\Model\Import as ImportExport;
3233
use Magento\Store\Model\Store;
3334
use Magento\Store\Model\StoreManagerInterface;
@@ -225,7 +226,8 @@ public function __construct(
225226
CategoryCollectionFactory $categoryCollectionFactory = null,
226227
ScopeConfigInterface $scopeConfig = null,
227228
CollectionFactory $collectionFactory = null,
228-
AttributeValue $attributeValue = null
229+
AttributeValue $attributeValue = null,
230+
MetadataPool $metadataPool = null
229231
) {
230232
$this->urlPersist = $urlPersist;
231233
$this->catalogProductFactory = $catalogProductFactory;

0 commit comments

Comments
 (0)