Skip to content

Commit

Permalink
Update ProductRepository.php
Browse files Browse the repository at this point in the history
Was a pull request some time ago. So this is "The Return of the Jed...", I mean: This is a new try ;-)
  • Loading branch information
lukadschaak committed Aug 3, 2021
1 parent 5cf3f88 commit 02116be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function findAllVariants(ProductInterface $product, $recursive = true)
if ($recursive) {
$list->setCondition('o_path LIKE ?', [$product->getRealFullPath() . '/%']);
} else {
$list->setCondition('o_parentId =', [$product->getId()]);
$list->setCondition('o_parentId = ?', [$product->getId()]);
}

return $list->getObjects();
Expand Down

0 comments on commit 02116be

Please sign in to comment.