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 c88eb84 commit 506f282Copy full SHA for 506f282
app/code/Magento/CatalogUrlRewrite/Observer/CategoryUrlPathAutogeneratorObserver.php
@@ -48,8 +48,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
48
{
49
/** @var Category $category */
50
$category = $observer->getEvent()->getCategory();
51
- $useDefaultAttribute = !$category->isObjectNew() && !empty($category->getData('use_default')['url_key'])
52
- && (int)$category->getData('use_default')['url_key'] === 1;
+ $useDefaultAttribute = !$category->isObjectNew() && !empty($category->getData('use_default')['url_key']);
53
if ($category->getUrlKey() !== false && !$useDefaultAttribute) {
54
$resultUrlKey = $this->categoryUrlPathGenerator->getUrlKey($category);
55
if (empty($resultUrlKey)) {
0 commit comments