Skip to content

Commit

Permalink
Fixed matchElement in product type condition rule
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree authored Jul 13, 2023
1 parent 75225d2 commit 23bf676
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ public function modifyQuery(ElementQueryInterface $query): void
public function matchElement(ElementInterface $element): bool
{
/** @var Product $element */
return $this->matchValue((string)$element->getType());
return $this->matchValue($element->getType()->uid);
}
}

0 comments on commit 23bf676

Please sign in to comment.