Skip to content

Commit c1e363e

Browse files
author
Roman Lytvynenko
committed
MC-19706: URL rewrite not created upon creating the product
1 parent 63cf5b3 commit c1e363e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ public function getStoreIds()
832832
if (!$this->hasStoreIds()) {
833833
$storeIds = [];
834834
if ($websiteIds = $this->getWebsiteIds()) {
835-
if ($this->_storeManager->isSingleStoreMode()) {
835+
if ($this->_storeManager->isSingleStoreMode() && !$this->isObjectNew()) {
836836
$websiteIds = array_keys($websiteIds);
837837
}
838838
foreach ($websiteIds as $websiteId) {

0 commit comments

Comments
 (0)