Skip to content

Commit 859253f

Browse files
authored
Merge pull request #87 from aadmathijssen/fix/take-cids-argument-into-account
Fix: take 'cids' argument into account
2 parents 8b51b29 + c57a26e commit 859253f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Console/Command/RegenerateCategoryUrlCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ public function execute(InputInterface $input, OutputInterface $output): int
132132
'like' => '1/' . $fromRootId . '/%',
133133
'=' => '1/' . $fromRootId
134134
]);
135-
} elseif (!empty($categoryIds)) {
135+
}
136+
if (!empty($categoryIds)) {
136137
$categories->addAttributeToFilter('entity_id', ['in' => $categoryIds]);
137138
}
138139

0 commit comments

Comments
 (0)