Skip to content

Commit 7894ea7

Browse files
authored
Fix option IDs
1 parent bc0687b commit 7894ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/Config/Source/TopLevelCategories.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private function createOptions(): array
4343
foreach ($collection->getItemsByColumnValue(CategoryInterface::KEY_LEVEL, 1) as $category) {
4444
$group = ['label' => $category->getName(), 'value' => []];
4545
foreach ($collection->getItemsByColumnValue(CategoryInterface::KEY_PARENT_ID, $category->getId()) as $child) {
46-
$group['value'][] = ['label' => $child->getName(), 'value' => $category->getId()];
46+
$group['value'][] = ['label' => $child->getName(), 'value' => $child->getId()];
4747
}
4848

4949
$options[] = $group;

0 commit comments

Comments
 (0)