We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f25fc03 commit bac82ccCopy full SHA for bac82cc
app/code/Magento/CatalogUrlRewrite/Model/Category/Plugin/Store/View.php
@@ -104,7 +104,10 @@ public function afterSave(
104
Store $object,
105
Store $store
106
): Store {
107
- if ($this->origStore->isObjectNew() || $this->origStore->dataHasChangedFor('group_id')) {
+ if (
108
+ $this->origStore->getData('group_id')
109
+ && ($this->origStore->isObjectNew() || $this->origStore->dataHasChangedFor('group_id'))
110
+ ) {
111
$categoryRewriteUrls = $this->generateCategoryUrls(
112
(int)$this->origStore->getRootCategoryId(),
113
(int)$this->origStore->getId()
0 commit comments