Skip to content

Commit 467db5f

Browse files
committed
Categories don't have an sku, fixed stupid copy/paste error.
1 parent d8e0fe5 commit 467db5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Checker/Catalog/Category/UrlKey/EmptyUrlKey.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ private function checkForEmptyUrlKeyAttributeValues(): array
5858
$collection
5959
->setStoreId($storeId)
6060
->addAttributeToSelect(UrlKeyChecker::URL_KEY_ATTRIBUTE)
61+
->addAttributeToSelect('name')
6162
->addAttributeToFilter('entity_id', ['neq' => CategoryModel::TREE_ROOT_ID])
6263
->addAttributeToFilter([
6364
[
@@ -100,7 +101,7 @@ private function getCategoriesWithProblems(int $storeId, CategoryCollection $col
100101
if ($isOverridden || $storeId === Store::DEFAULT_STORE_ID) {
101102
$problems[] = [
102103
'catId' => (int) $category->getEntityId(),
103-
'sku' => $category->getSku(),
104+
'name' => $category->getName(),
104105
'storeId' => $storeId,
105106
'problem' => self::EMPTY_PROBLEM_DESCRIPTION,
106107
];

0 commit comments

Comments
 (0)