Skip to content

Commit 2d79a0b

Browse files
authored
Add small change on category indexing for Enterprise Edition (#1136)
1 parent 61bc05f commit 2d79a0b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Helper/Entity/CategoryHelper.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,8 @@ private function getCategoryKeyId($categoryId)
465465

466466
if ($this->getCorrectIdColumn() === 'row_id') {
467467
$category = $this->getCategoryById($categoryId);
468-
if ($category) {
469-
$categoryKeyId = $category->getRowId();
470-
}
468+
469+
return $category ? $category->getRowId() : null;
471470
}
472471

473472
return $categoryKeyId;

0 commit comments

Comments
 (0)