Skip to content

Commit 9362d5a

Browse files
authored
Fix for scope bug in Catalog URL resource
Fixing issue #38393
1 parent 03621bb commit 9362d5a

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ protected function _getCategories($categoryIds, $storeId = null, $path = null)
412412
if (!is_array($categoryIds)) {
413413
$categoryIds = [$categoryIds];
414414
}
415-
$isActiveExpr = $connection->getCheckSql('c.value_id > 0', 'c.value', 'c.value');
415+
$isActiveExpr = $connection->getCheckSql('c.value_id IS NOT NULL', 'c.value', 'd.value');
416416
$select = $connection->select()->from(
417417
['main_table' => $this->getTable('catalog_category_entity')],
418418
[

0 commit comments

Comments
 (0)