Skip to content

Commit

Permalink
Merge pull request #2086 from aarongerig/patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer authored Sep 27, 2022
2 parents d3c8c3a + cf09ae3 commit 29489d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getVariants(): array
{
if ($this instanceof Concrete) {
$list = $this::getList();
$list->setCondition('o_path LIKE \'' . $this->getFullPath() . '/%\'');
$list->setCondition('o_path LIKE ?', [$this->getFullPath() . '/%']);
$list->setObjectTypes([AbstractObject::OBJECT_TYPE_VARIANT]);

$variants = $list->getObjects();
Expand Down

0 comments on commit 29489d8

Please sign in to comment.